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

PDPageContentStream: Add setMiterLimit()

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.4
    • 2.0.5, 3.0.0 PDFBox
    • Writing
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: