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

PDPageContentStream.setLineWidth(float) not allowed in text block

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.24
    • 2.0.25, 3.0.0 PDFBox
    • PDModel
    • None

    Description

      PDPageContentStream.setLineWidth(float) incorrectly throws an exception that setLineWidth is not allowed within a text block.  setLineWidth uses PDF operator "w", which according to the PDF specification, it is allowed and is used to set the stroke line width for text outlines when using either STROKE or FILL_STROKE rendering modes.  This is shown on page 392 of the specification at https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdf_reference_archive/pdf_reference_1-7.pdf in Example 5.4.

       

      Attachments

        Activity

          People

            lehmi Andreas Lehmkühler
            tmvander Todd VanderWoude
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: