PDFBox
  1. PDFBox
  2. PDFBOX-1133

Re-factoring org.apache.pdfbox.pdfparser.PDFParser.parseHeader() method

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.7.0
    • Fix Version/s: None
    • Component/s: Parsing
    • Labels:
      None

      Description

      Re-factoring the method parseHeader() method to support an extra header declaration : "%CSO-".

      This header is foundable into some XFDF document, when the stamp appearance stream is define as complete COSDocument. This special document use "%CSO-1.0" as header declaration.

      So I purpose to enhance the PDFReader to be able to parse this kind of document.

      Pierre Huttin

      1. sample.xfdf
        8 kB
        Pierre Huttin
      2. sample.cdata_decoded.cos
        7 kB
        Pierre Huttin
      3. PDFParser.java.patch
        7 kB
        Pierre Huttin

        Activity

        Hide
        Pierre Huttin added a comment -

        patch proposal for PDF Reader enhancement

        Show
        Pierre Huttin added a comment - patch proposal for PDF Reader enhancement
        Hide
        Andreas Lehmkühler added a comment -

        Please, provide us with a sample file.

        Show
        Andreas Lehmkühler added a comment - Please, provide us with a sample file.
        Hide
        Pierre Huttin added a comment -

        Sample document that use CSO document in it.

        Show
        Pierre Huttin added a comment - Sample document that use CSO document in it.
        Hide
        Pierre Huttin added a comment -

        The file sample.xfdf is the xfdf file and the file sample .cdata_decoded.cos is the content of the member CDATA element from xfdf document. To decoded it I just convert the hex string to a byte array and inflate the byte array.

        This file is generated by a comment server library from adobe named manhattan_core.jar

        Show
        Pierre Huttin added a comment - The file sample.xfdf is the xfdf file and the file sample .cdata_decoded.cos is the content of the member CDATA element from xfdf document. To decoded it I just convert the hex string to a byte array and inflate the byte array. This file is generated by a comment server library from adobe named manhattan_core.jar

          People

          • Assignee:
            Unassigned
            Reporter:
            Pierre Huttin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development