Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-4565

Make constructors PDPanoseClassification and CIDSystemInfo public

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Workaround
    • Affects Version/s: 2.0.15
    • Fix Version/s: None
    • Component/s: FontBox, PDModel
    • Labels:
      None

      Description

      The constructors for the classes PDPanoseClassification and CIDSystemInfo are package-visible only (not public).

      This makes coding a different FontProvider similar to FileSystemFontProvider an unnecessarily hard task.

      Background:

      I'm working on replacing iText with PDFBox for Eclipse BIRT. One task is to support BIRTs fontconfig.xml for locating TTF fonts etc.

      Obviously I need something simlar to the FileSystemFontProvider, but instead of using the file system directly, use the information in BIRTs fontconfig.xml file.

      So I started with copying FileSystemFontProvider to a new class ConfigFontProvider in a different package.

      Now this fails because the classes PDPanoseClassification and CIDSystemInfo have non-public (package-only) constructors. So I'd have to copy a whole bunch of source files in order to make this work.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hvbdev Henning von Bargen
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified