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

PDPageContentStream: Add setMiterLimit()

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 2.0.5, 3.0.0 PDFBox
    • Component/s: Writing
    • Labels:
      None
    • Flags:
      Patch

      Description

      Currently PDPageContentStream has no method to set the miter limit. At the moment one has to resort to

      contentStream.appendRawCommands(11f + " M ");
      

      as workaround. But appendRawCommand() is deprecated, so there should be a official method to do so:

          /**
           * Set the miter limit.
           *
           * @param miterLimit the new miter limit.
           * @throws IOException If the content stream could not be written.
           */ 
          public void setMiterLimit(float miterLimit) throws IOException
          {
              if (inTextMode)
              {
                  throw new IllegalStateException("Error: setMiterLimit is not allowed within a text block.");
              }
              writeOperand(miterLimit);
              writeOperator("M");
          }
      
      

      Please add this method to PDPageContentStream. Thank you.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tilman Tilman Hausherr
                Reporter:
                rototor Emmeran Seehuber
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: