ICEpdf
  1. ICEpdf
  2. PDF-462

Checkboxes are rendered with a 4 inside and not a check

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.2, 4.3.3
    • Fix Version/s: 5.0.1
    • Component/s: Font Engine
    • Labels:
      None
    • Environment:
      All

      Description

      When rendering a PDF file the checkboxes on the page have a '4' rendered inside of the box and not the expected check mark.

      Note: checkboxes are located on the 3rd page in the provided PDF file.
      1. agreement.pdf
        730 kB
        Contractpal Inc.
      2. DC-CE-Enroll-Schedule.pdf
        336 kB
        Evgheni Sadovoi

        Activity

        Hide
        Contractpal Inc. added a comment -

        4.3.4 on Java (linux). However you can upload the pdf to your online webstart demo (http://res.icesoft.org/demo/jws/icepdf.jnlp) and it has the same issue (I'll have to supply a different pdf that is checked- the one I attached is not pre-checked). Because of this, I haven't upgraded ICE to solve the issue but I will if you think it will resolve it.

        Show
        Contractpal Inc. added a comment - 4.3.4 on Java (linux). However you can upload the pdf to your online webstart demo ( http://res.icesoft.org/demo/jws/icepdf.jnlp ) and it has the same issue (I'll have to supply a different pdf that is checked- the one I attached is not pre-checked). Because of this, I haven't upgraded ICE to solve the issue but I will if you think it will resolve it.
        Hide
        Patrick Corless added a comment -

        I've looked into the encoding of annotations that make up the check boxes and radio buttons. The check boxes are using ZapfDingbats for the checks. You will need to install or stage the dingbats.pfb font from http://svn.ghostscript.com/ghostscript/trunk/urw-fonts/ on your Linux system.

        The FontManager class will scan the following locations on a linux system for available fonts.
        "/etc/fonts/",
        System.getProperty("user.home") + "/.fonts/",
        "/system/etc/fonts/",
        "/usr/lib/X11/fonts",
        "/usr/share/a2ps/afm/",
        "/usr/share/enscript/afm/",
        "/usr/share/fonts/local/",
        "/usr/share/fonts/truetype/",
        "/usr/share/fonts/truetype/freefont/",
        "/usr/share/fonts/truetype/msttcorefonts/",
        "/usr/share/fonts/Type1/",
        "/usr/share/fonts/type1/gsfonts/",
        "/usr/share/fonts/X11/Type1/",
        "/usr/share/ghostscript/fonts/",
        "/usr/share/groff/1.18.1/font/devps/",
        "/usr/share/groff/1.18.1/font/devps/generate/",
        "/usr/share/libwmf/fonts/",
        "/usr/share/ogonkify/afm/",
        "/usr/X11R6/lib/X11/fonts/",
        "/var/lib/defoma/gs.d/dirs/fonts/",

        If you are using the Viewer RI or the FontPropertiesManager you will need to delete the ~/.icesoft/icepdf-viewer/pdfviewerfontcache.properties so that a new one can be created on the next run of the application.

        On a site note our 5.1 development work will bring forms support allowing your sample files forms to be dynamically toggled with the mouse.

        Show
        Patrick Corless added a comment - I've looked into the encoding of annotations that make up the check boxes and radio buttons. The check boxes are using ZapfDingbats for the checks. You will need to install or stage the dingbats.pfb font from http://svn.ghostscript.com/ghostscript/trunk/urw-fonts/ on your Linux system. The FontManager class will scan the following locations on a linux system for available fonts. "/etc/fonts/", System.getProperty("user.home") + "/.fonts/", "/system/etc/fonts/", "/usr/lib/X11/fonts", "/usr/share/a2ps/afm/", "/usr/share/enscript/afm/", "/usr/share/fonts/local/", "/usr/share/fonts/truetype/", "/usr/share/fonts/truetype/freefont/", "/usr/share/fonts/truetype/msttcorefonts/", "/usr/share/fonts/Type1/", "/usr/share/fonts/type1/gsfonts/", "/usr/share/fonts/X11/Type1/", "/usr/share/ghostscript/fonts/", "/usr/share/groff/1.18.1/font/devps/", "/usr/share/groff/1.18.1/font/devps/generate/", "/usr/share/libwmf/fonts/", "/usr/share/ogonkify/afm/", "/usr/X11R6/lib/X11/fonts/", "/var/lib/defoma/gs.d/dirs/fonts/", If you are using the Viewer RI or the FontPropertiesManager you will need to delete the ~/.icesoft/icepdf-viewer/pdfviewerfontcache.properties so that a new one can be created on the next run of the application. On a site note our 5.1 development work will bring forms support allowing your sample files forms to be dynamically toggled with the mouse.
        Hide
        Contractpal Inc. added a comment -

        Patrick-

        We keep all of our fonts in the same directory as the app for security reasons. Any chance I can add to your FontManager where to look?

        D

        Show
        Contractpal Inc. added a comment - Patrick- We keep all of our fonts in the same directory as the app for security reasons. Any chance I can add to your FontManager where to look? D
        Hide
        Contractpal Inc. added a comment -

        I should have looked at the API. I think this might work:
        FontManager.getInstance().readSystemFonts(String[] extraPaths);

        Show
        Contractpal Inc. added a comment - I should have looked at the API. I think this might work: FontManager.getInstance().readSystemFonts(String[] extraPaths);
        Hide
        Patrick Corless added a comment -

        That's the call and it's also possible to load fonts from a jar if needed.

        Show
        Patrick Corless added a comment - That's the call and it's also possible to load fonts from a jar if needed.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: