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

Add method to subset fonts for document pre-save

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: Writing
    • Labels:
      None

      Description

      I have a custom COSWriter which compresses all streams and runs a SHA1 sum over each object, only writing one instance of each object with the same SHA1 sum.

      This really helps compress PDFs.

      I use this by calling MyCustomCOSWriter.write(PDDocument);

      The trouble is that I have no way of calling the font subsetting that happens in PDDocument.save().

      Could we have a method to perform that font subsetting manually?

        Attachments

          Activity

            People

            • Assignee:
              jahewson John Hewson
              Reporter:
              jesselong Jesse Long
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: