Uploaded image for project: 'Document Management System'
  1. Document Management System
  2. DMS-789

DMS | PDF Viewer Font change as per PDF font

    Details

    • Type: New Feature
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: Integration with SMB
    • Labels:
      None
    • Company:
      CareerBuilder

      Description

      Environment: Pre Prod

      Currently, we are not able to change the font of editable fields.

      So, we need change the font as per PDF font ( Viewer Component )

      Samir, Swapnil Pandhare

        Attachments

        1. Cbat_Letter.JPG
          Cbat_Letter.JPG
          44 kB
        2. Screenshot (1058).png
          Screenshot (1058).png
          155 kB
        3. Screenshot (1059).png
          Screenshot (1059).png
          198 kB
        4. Screenshot (1073).png
          Screenshot (1073).png
          349 kB
        5. Screenshot (1073).png
          Screenshot (1073).png
          349 kB
        6. Screenshot (1074).png
          Screenshot (1074).png
          413 kB
        7. Screenshot (1074).png
          Screenshot (1074).png
          413 kB
        8. Screenshot (1087).png
          Screenshot (1087).png
          237 kB
        9. Screenshot (1088).png
          Screenshot (1088).png
          288 kB
        10. SMB_hire- DefaultFont.JPG
          SMB_hire- DefaultFont.JPG
          51 kB
        11. SMB_hire-FontIncreased.JPG
          SMB_hire-FontIncreased.JPG
          58 kB

          Issue Links

            Activity

            narendra.kumar Narendra Kumar created issue -
            ramya.tantry Ramya Tantry (Inactive) logged work - 14/Feb/19 04:39 AM
            • Time Spent:
              20m
               

              Discussion with Narendra and Swapnil

            ramya.tantry Ramya Tantry (Inactive) made changes -
            Field Original Value New Value
            Remaining Estimate 8h [ 28800 ] 7h 40m [ 27600 ]
            Time Spent 20m [ 1200 ]
            Worklog Id 160963 [ 160963 ]
            swapnil.pandhare Swapnil Pandhare (Inactive) made changes -
            Link This issue relates to DMS-740 [ DMS-740 ]
            swapnil.pandhare Swapnil Pandhare (Inactive) made changes -
            Sprint DMS - Sprint 3 [ 152 ] DMS - Sprint 4 [ 153 ]
            samir Samir made changes -
            Fix Version/s Integration with SMB [ 10453 ]
            ramya.tantry Ramya Tantry (Inactive) made changes -
            Status To Do [ 10000 ] In Progress [ 3 ]
            ramya.tantry Ramya Tantry (Inactive) made changes -
            Attachment Cbat_Letter.JPG [ 99967 ]
            Attachment SMB_hire- DefaultFont.JPG [ 99968 ]
            Attachment SMB_hire-FontIncreased.JPG [ 99969 ]
            Hide
            ramya.tantry Ramya Tantry (Inactive) added a comment -

            Task Details (03/01/2019)

            R&D on getting fonts of the PDF and setting them. First embedded font of the PDF is set for all the fields.

            1. Tried for SMBHire offer letter - with default font size of the Doc
            2. For SMBHire offer letter - with double font size of the Doc
            3. For CBATS offer letter - with default font size.

             For CBATS offer letter - The embeded font shows symbols.Tried with reference font which results in symbol as well.

            Need more time to analyze these results and set proper fonts so that it is working properly for all PDF's.

             

            CC: Swapnil Pandhare,Samir

            Show
            ramya.tantry Ramya Tantry (Inactive) added a comment - Task Details (03/01/2019) R&D on getting fonts of the PDF and setting them. First embedded font of the PDF is set for all the fields. Tried for SMBHire offer letter - with default font size of the Doc For SMBHire offer letter - with double font size of the Doc For CBATS offer letter - with default font size.  For CBATS offer letter - The embeded font shows symbols.Tried with reference font which results in symbol as well. Need more time to analyze these results and set proper fonts so that it is working properly for all PDF's.   CC: Swapnil Pandhare , Samir
            ramya.tantry Ramya Tantry (Inactive) logged work - 01/Mar/19 05:14 AM
            • Time Spent:
              6h
               

              R&D on getting fonts of the PDF and setting them. First embedded font of the PDF is set for all the fields.

            ramya.tantry Ramya Tantry (Inactive) made changes -
            Remaining Estimate 7h 40m [ 27600 ] 1h 40m [ 6000 ]
            Time Spent 20m [ 1200 ] 6h 20m [ 22800 ]
            Worklog Id 164190 [ 164190 ]
            ramya.tantry Ramya Tantry (Inactive) logged work - 04/Mar/19 04:52 AM
            • Time Spent:
              4h
               

              Discussion with Smita and Swapnil
              Changes to PDF
              unit testing

            ramya.tantry Ramya Tantry (Inactive) made changes -
            Remaining Estimate 1h 40m [ 6000 ] 0h [ 0 ]
            Time Spent 6h 20m [ 22800 ] 10h 20m [ 37200 ]
            Worklog Id 164480 [ 164480 ]
            Hide
            ramya.tantry Ramya Tantry (Inactive) added a comment -

            Task Details (03/04/2019)

            • Made changes to the existing templates of prod and pre-prod.

            CC: Swapnil Pandhare,Samir

            Show
            ramya.tantry Ramya Tantry (Inactive) added a comment - Task Details (03/04/2019) R&D on embedded and reference PDF fonts of PDF. As per discussion, Changed the Font of the PDF fields using Acrobat DC. Verified the same on pre-prod and prod environment. Urls : Pre-prod : https://dmsstage.workterra.net/viewer?Token=5c5e033bddb24b308a6180f854b17582&key=ffe0a814af69c10e47615d489bc34391c657f548d6004a2b49e1a0257aa76c7b Prod : https://dms.workterra.net/viewer?Token=8e052dd08fa94011a146a7719fdeb6c9&key=8aa55ee6f61142fa82381a20a6a5db707afceb6a20c6f480cb27c71b7e31dd72 Made changes to the existing templates of prod and pre-prod. CC: Swapnil Pandhare , Samir
            ramya.tantry Ramya Tantry (Inactive) logged work - 04/Mar/19 07:56 PM - edited
            • Time Spent:
              0.5h
               

              Discussion with Swapnil

            ramya.tantry Ramya Tantry (Inactive) made changes -
            Status In Progress [ 3 ] To Do [ 10000 ]
            ramya.tantry Ramya Tantry (Inactive) made changes -
            Time Spent 10h 20m [ 37200 ] 10h 50m [ 39000 ]
            Worklog Id 164840 [ 164840 ]
            ramya.tantry Ramya Tantry (Inactive) made changes -
            Worklog Id 164840 [ 164840 ]
            Hide
            ramya.tantry Ramya Tantry (Inactive) added a comment -

            Hi Samir,Swapnil Pandhare

            Based on the R&D done and try outs, The fonts will vary as per PDF when we set one of the embedded fonts to the PDF fields while writing PDF.
            Below are my observation :

            • On one PDF, the font will come correctly as expected, but on other , symbols may appear. Please refer my first comment for screenshots.
            • I am not able to set the size as per the doc, as it gives me a default font size which is much smaller than the actual font in the document. If I set some calculated font, this may vary as per PDF.

            For SMB Offer Letter PDF, we were able to set font and fontsize while designing the PDF.
            ABCpdf service writes into the PDF as per the default font set to the field. So with change in Offer letter PDF of SMB we were able to achieve same font and fontsize throughout. For this no change is done on ABCpdf service.

            I checked the same for CBAT offer letter and the fonts that is getting written on the PDF is as per the one that is set for the PDF Fields when the PDF was designed.

            Also, I observed that on editable PDF view, default font, i.e Times has been set to all the fields. So while viewing the PDF through editable PDF component, all PDF field values will be seen in Times font irrespective of the font in PDF.

            Let me know further action points and your views on this.

            Show
            ramya.tantry Ramya Tantry (Inactive) added a comment - Hi Samir , Swapnil Pandhare Based on the R&D done and try outs, The fonts will vary as per PDF when we set one of the embedded fonts to the PDF fields while writing PDF. Below are my observation : On one PDF, the font will come correctly as expected, but on other , symbols may appear. Please refer my first comment for screenshots. I am not able to set the size as per the doc, as it gives me a default font size which is much smaller than the actual font in the document. If I set some calculated font, this may vary as per PDF. For SMB Offer Letter PDF, we were able to set font and fontsize while designing the PDF. ABCpdf service writes into the PDF as per the default font set to the field. So with change in Offer letter PDF of SMB we were able to achieve same font and fontsize throughout. For this no change is done on ABCpdf service . I checked the same for CBAT offer letter and the fonts that is getting written on the PDF is as per the one that is set for the PDF Fields when the PDF was designed. Also, I observed that on editable PDF view, default font, i.e Times has been set to all the fields. So while viewing the PDF through editable PDF component, all PDF field values will be seen in Times font irrespective of the font in PDF. Let me know further action points and your views on this.
            ramya.tantry Ramya Tantry (Inactive) made changes -
            Assignee Ramya Tantry [ ramya.tantry ] Samir [ samir ]
            samir Samir made changes -
            Sprint DMS - Sprint 4 [ 153 ] DMS - Sprint 5 [ 154 ]
            swapnil.pandhare Swapnil Pandhare (Inactive) made changes -
            Assignee Samir [ samir ] Ramya Tantry [ ramya.tantry ]
            ramya.tantry Ramya Tantry (Inactive) logged work - 15/Mar/19 05:55 AM
            • Time Spent:
              1h
               

              Discussion with Swapnil and Narendra

              Angular level analysis

            ramya.tantry Ramya Tantry (Inactive) made changes -
            Time Spent 10h 50m [ 39000 ] 11h 50m [ 42600 ]
            Worklog Id 166882 [ 166882 ]
            ramya.tantry Ramya Tantry (Inactive) made changes -
            Status To Do [ 10000 ] In Progress [ 3 ]
            ramya.tantry Ramya Tantry (Inactive) made changes -
            Remaining Estimate 0h [ 0 ] 8h 10m [ 29400 ]
            Original Estimate 8h [ 28800 ] 20h [ 72000 ]
            ramya.tantry Ramya Tantry (Inactive) logged work - 19/Mar/19 05:53 AM
            • Time Spent:
              5h
               

              Analysis of PDF font on Angular level

              Discussion with Swapnil

            ramya.tantry Ramya Tantry (Inactive) made changes -
            Remaining Estimate 8h 10m [ 29400 ] 3h 10m [ 11400 ]
            Time Spent 11h 50m [ 42600 ] 16h 50m [ 60600 ]
            Worklog Id 167382 [ 167382 ]
            Hide
            ramya.tantry Ramya Tantry (Inactive) added a comment -

            Task Details (03/16/2019)

            • Analysis of PDF font on Angular level
            • Discussion with Swapnil
            Show
            ramya.tantry Ramya Tantry (Inactive) added a comment - Task Details (03/16/2019) Analysis of PDF font on Angular level Discussion with Swapnil
            ramya.tantry Ramya Tantry (Inactive) made changes -
            Remaining Estimate 3h 10m [ 11400 ] 11h 10m [ 40200 ]
            Original Estimate 20h [ 72000 ] 28h [ 100800 ]
            Hide
            ramya.tantry Ramya Tantry (Inactive) added a comment -

            As per discussion with Swapnil and Samir, we will be saving font details in documenttemplatefields table and will be using these to set fontsize and font name on editable PDF. Extending the estimates as well.

            Tasks in this Jira.

            1. Add two columns in documenttemplatefields for font size and font name.
            2. New function to be added In PDFRead.cs to read all fonts.
            3. While create/ update, save the fontsize and fontname in documenttemplatefields.
            4. On preview and edit, return fontdetails object
            5. Apply the font details object on UI while creating input.
            6. Unit testing
            7. Handle cases for HTML template.

            Note: for HTML, default font will be populated. i.e Times.

            Task Details (03/20/2019)

            • Add two columns in documenttemplatefields for font size and font name.
            • New function to be added In PDFRead.cs to read all fonts.
            • While create/ update, save the fontsize and fontname in documenttemplatefields.
            • On preview and edit, return fontdetails object

             

            Show
            ramya.tantry Ramya Tantry (Inactive) added a comment - As per discussion with Swapnil and Samir, we will be saving font details in documenttemplatefields table and will be using these to set fontsize and font name on editable PDF. Extending the estimates as well. Tasks in this Jira. Add two columns in documenttemplatefields for font size and font name. New function to be added In PDFRead.cs to read all fonts. While create/ update, save the fontsize and fontname in documenttemplatefields. On preview and edit, return fontdetails object Apply the font details object on UI while creating input. Unit testing Handle cases for HTML template. Note : for HTML, default font will be populated. i.e Times. Task Details (03/20/2019) Add two columns in documenttemplatefields for font size and font name. New function to be added In PDFRead.cs to read all fonts. While create/ update, save the fontsize and fontname in documenttemplatefields. On preview and edit, return fontdetails object  
            ramya.tantry Ramya Tantry (Inactive) made changes -
            Remaining Estimate 11h 10m [ 40200 ] 27h 10m [ 97800 ]
            Original Estimate 28h [ 100800 ] 44h [ 158400 ]
            ramya.tantry Ramya Tantry (Inactive) logged work - 20/Mar/19 06:14 AM
            • Time Spent:
              7h
               
              • Add two columns in documenttemplatefields for font size and font name.
              • New function to be added In PDFRead.cs to read all fonts.
              • While create/ update, save the fontsize and fontname in documenttemplatefields.
              • On preview and edit, return fontdetails object
            ramya.tantry Ramya Tantry (Inactive) made changes -
            Remaining Estimate 27h 10m [ 97800 ] 20h 10m [ 72600 ]
            Time Spent 16h 50m [ 60600 ] 23h 50m [ 85800 ]
            Worklog Id 167620 [ 167620 ]
            ramya.tantry Ramya Tantry (Inactive) logged work - 22/Mar/19 05:58 AM
            • Time Spent:
              7h
               
              1. Apply the font details object on UI while creating input.
              2. Handle cases for HTML template.
            ramya.tantry Ramya Tantry (Inactive) made changes -
            Remaining Estimate 20h 10m [ 72600 ] 13h 10m [ 47400 ]
            Time Spent 23h 50m [ 85800 ] 30h 50m [ 111000 ]
            Worklog Id 168174 [ 168174 ]
            Hide
            ramya.tantry Ramya Tantry (Inactive) added a comment -

            Task details(03/22/2019)

            1. Apply the font details object on UI while creating input.
            2. Handle cases for HTML template.
            Show
            ramya.tantry Ramya Tantry (Inactive) added a comment - Task details(03/22/2019) Apply the font details object on UI while creating input. Handle cases for HTML template.
            ramya.tantry Ramya Tantry (Inactive) made changes -
            Status In Progress [ 3 ] Code Review [ 11801 ]
            ramya.tantry Ramya Tantry (Inactive) made changes -
            Assignee Ramya Tantry [ ramya.tantry ] Swapnil Pandhare [ swapnil.pandhare ]
            ramya.tantry Ramya Tantry (Inactive) logged work - 25/Mar/19 05:48 AM
            • Time Spent:
              5h
               

              Unit testing

              Code changes for PDF service

              Raise PR

            ramya.tantry Ramya Tantry (Inactive) made changes -
            Remaining Estimate 13h 10m [ 47400 ] 8h 10m [ 29400 ]
            Time Spent 30h 50m [ 111000 ] 35h 50m [ 129000 ]
            Worklog Id 168374 [ 168374 ]
            Raj.Hawaldar Raj Hawaldar (Inactive) made changes -
            Status Code Review [ 11801 ] In QA Testing [ 11901 ]
            Raj.Hawaldar Raj Hawaldar (Inactive) made changes -
            Assignee Swapnil Pandhare [ swapnil.pandhare ] Priya Dhamande [ priya.dhamande ]
            priya.dhamande Priya Dhamande (Inactive) made changes -
            Attachment Screenshot (1074).png [ 102357 ]
            Attachment Screenshot (1073).png [ 102358 ]
            priya.dhamande Priya Dhamande (Inactive) made changes -
            Attachment Screenshot (1059).png [ 102359 ]
            Attachment Screenshot (1058).png [ 102360 ]
            priya.dhamande Priya Dhamande (Inactive) made changes -
            Attachment Screenshot (1074).png [ 102361 ]
            Attachment Screenshot (1073).png [ 102362 ]
            Hide
            priya.dhamande Priya Dhamande (Inactive) added a comment -

            Verified for few offer letters, W4 forms etc.

            For W4 forms the font seems quiet different.

            Ramya Tantry Swapnil Pandhare

            Show
            priya.dhamande Priya Dhamande (Inactive) added a comment - Verified for few offer letters, W4 forms etc. For W4 forms the font seems quiet different. Ramya Tantry Swapnil Pandhare
            priya.dhamande Priya Dhamande (Inactive) made changes -
            Attachment Screenshot (1087).png [ 102474 ]
            Attachment Screenshot (1088).png [ 102475 ]
            priya.dhamande Priya Dhamande (Inactive) logged work - 28/Mar/19 03:32 AM
            • Time Spent:
              0.5h
               

              Preprod verification
              Discussion with ramya

            Hide
            priya.dhamande Priya Dhamande (Inactive) added a comment -

            Environment: PreProd

            Verified for CBAT, SMB offer letters, W4 forms etc.
            The font is displayed as per the font in PDF field added.

            Screenc apture attached for refrence.
            So, marking jira Done.

            Swapnil Pandhare Ramya Tantry

            Show
            priya.dhamande Priya Dhamande (Inactive) added a comment - Environment: PreProd Verified for CBAT, SMB offer letters, W4 forms etc. The font is displayed as per the font in PDF field added. Screenc apture attached for refrence. So, marking jira Done. Swapnil Pandhare Ramya Tantry
            priya.dhamande Priya Dhamande (Inactive) made changes -
            Remaining Estimate 8h 10m [ 29400 ] 7h 40m [ 27600 ]
            Time Spent 35h 50m [ 129000 ] 36h 20m [ 130800 ]
            Worklog Id 169208 [ 169208 ]
            priya.dhamande Priya Dhamande (Inactive) made changes -
            Resolution Done [ 10000 ]
            Status In QA Testing [ 11901 ] Done [ 10001 ]
            priya.dhamande Priya Dhamande (Inactive) made changes -
            Assignee Priya Dhamande [ priya.dhamande ] Ramya Tantry [ ramya.tantry ]
            Transition Time In Source Status Execution Times
            Ramya Tantry (Inactive) made transition -
            In Progress To Do
            4d 5h 18m 1
            Ramya Tantry (Inactive) made transition -
            To Do In Progress
            28d 12h 35m 2
            Ramya Tantry (Inactive) made transition -
            In Progress Code Review
            6d 8h 26m 1
            Raj Hawaldar (Inactive) made transition -
            Code Review In QA Testing
            1d 19h 14m 1
            Priya Dhamande (Inactive) made transition -
            In QA Testing Done
            1d 2h 29m 1

              People

              Assignee:
              ramya.tantry Ramya Tantry (Inactive)
              Reporter:
              narendra.kumar Narendra Kumar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 44h
                  44h
                  Remaining:
                  Time Spent - 36h 20m Remaining Estimate - 7h 40m
                  7h 40m
                  Logged:
                  Time Spent - 36h 20m Remaining Estimate - 7h 40m
                  36h 20m