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

            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
            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
            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.
            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
            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  
            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.
            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
            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

              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