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

PDFBox Rendering of PDF Page incorrect when using the special None Named Separation

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.19
    • Fix Version/s: 2.0.21, 3.0.0 PDFBox
    • Component/s: Rendering
    • Labels:
      None
    • Environment:
      Windows Linux

      Description

      Setting a Named Separation to "None" is a way of creating an ink should be ignored by the rendering application. This doesn't happen in PDFBox as it appears to use the CMYK representation when displaying the PDF in the debugger and when it creates a rendered png file.

      i.e.

      BufferedImage bim = pdfRenderer.renderImageWithDPI(page, 300, ImageType.RGB);

       

      Other applications (Acrobat, ImageMagick etc.) render the output correctly.

       

      The attached PDF FIle illustrate this.

       
      TwoCircles_NS.pdf was created in Adobe Illustrator and saved as PDF without compression. It uses a couple of named separations NS_1 and NS_2. 
       
      TwoCircles_NS-None.pdf is the same PDF content but the names of the name separations have both been set to "None" - This was done in a HexEditor but in practice it is done via PDFBox.
       
      PDFBox_TwoCircles_NS-None.pdf-1.png is the result of the PDFBox Render to PNG which doesn't appear to follow the PDF Spec. and the definition of None when used as a named separation.
       
      ImageMagic_TwoCircles_NS-none.png is the output from "magick convert -density 150" which appears to be correct/gives the desired result.
       
       
       

        Attachments

        1. ImageMagic_TwoCircles_NS-None.png
          23 kB
          Andrew Daykin
        2. PDFBox_TwoCircles_NS-None.pdf-1.png
          127 kB
          Andrew Daykin
        3. TwoCircles_NS.pdf
          349 kB
          Andrew Daykin
        4. TwoCircles_NS-None.pdf
          349 kB
          Andrew Daykin

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              PDFDeveloper Andrew Daykin

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 336h
                336h
                Remaining:
                Remaining Estimate - 336h
                336h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Issue deployment