|
Generated by JDiff |
||||||||
| PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES | |||||||||
This file contains all the changes in documentation in the packagecom.itextpdf.svg.converteras colored differences. Deletions are shownlike this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a tag will cause all subsequent paragraphs to be displayed differently.
Converts a String containing valid SVG content to an XObject that can then be used on the passed PdfDocument. This method does NOT manipulate the PdfDocument in any way.Class SvgConverter, Image convertToImage(InputStream, PdfDocument, ISvgConverterProperties)This method (or its overloads) is the best method to use if you want to reuse the same SVG image multiple times on the same PdfDocument.
If you want to reuse this object on other PdfDocument instances, please either use any of the .process overloads in this same class and convert its result to an XObject with .convertToXObject(ISvgNodeRenderer, PdfDocument) , or look into using com.itextpdf.kernel.pdf.PdfObject.copyTo(PdfDocument). @param stream the Stream
objectcontaining valid SVG content @param document the PdfDocument instance to draw on @return a Image containing the PDFinstructionsinstructions corresponding to the passed SVG content @throws IOException when the Stream cannot be read correctly
Converts a String containing valid SVG content to an image that can then be used on the passed PdfDocument. This method does NOT manipulate the PdfDocument in any way.Class SvgConverter, PdfFormXObject convertToXObject(ISvgNodeRenderer, PdfDocument)This method (or its overloads) is the best method to use if you want to reuse the same SVG image multiple times on the same PdfDocument.
If you want to reuse this object on other PdfDocument instances, please either use any of the .process overloads in this same class and convert its result to an XObject with .convertToXObject(ISvgNodeRenderer, PdfDocument) , or look into using com.itextpdf.kernel.pdf.PdfObject.copyTo(PdfDocument). @param stream the Stream
objectcontaining valid SVG content @param document the PdfDocument instance to draw on @param props ISvgConverterProperties an instance for extra properties to customize the behavior @return a Image containing the PDFinstructionsinstructions corresponding to the passed SVG content @throws IOException when the Stream cannot be read correctly
This method draws a NodeRenderer tree to a canvas that is tied to the passed document.Class SvgConverter, PdfFormXObject convertToXObject(InputStream, PdfDocument)This method (or its overloads) is the best method to use if you want to reuse the same SVG image multiple times on the same PdfDocument.
If you want to reuse this object on other PdfDocument instances, please either use any of the .process overloads in this same class and convert its result to an XObject with this method, or look into using com.itextpdf.kernel.pdf.PdfObject.copyTo(PdfDocument). @param topSvgRenderer the ISvgNodeRenderer instance that contains the renderer tree @param document the document that the returned XObject can be drawn on (on any given page coordinates) @return an XObjectcontaining the PDF instructions corresponding to the passed node renderer tree.
Converts a String containing valid SVG content to an XObject that can then be used on the passed PdfDocument. This method does NOT manipulate the PdfDocument in any way.Class SvgConverter, PdfFormXObject convertToXObject(InputStream, PdfDocument, ISvgConverterProperties)This method (or its overloads) is the best method to use if you want to reuse the same SVG image multiple times on the same PdfDocument.
If you want to reuse this object on other PdfDocument instances, please either use any of the .process overloads in this same class and convert its result to an XObject with .convertToXObject(ISvgNodeRenderer, PdfDocument) , or look into using com.itextpdf.kernel.pdf.PdfObject.copyTo(PdfDocument). @param stream the Stream
objectcontaining valid SVG content @param document the PdfDocument instance to draw on @return a XObject containing the PDF instructions corresponding to the passed SVG content @throws IOException when the Stream cannot be read correctly
Converts a String containing valid SVG content to an XObject that can then be used on the passed PdfDocument. This method does NOT manipulate the PdfDocument in any way.Class SvgConverter, PdfFormXObject convertToXObject(String, PdfDocument)This method (or its overloads) is the best method to use if you want to reuse the same SVG image multiple times on the same PdfDocument.
If you want to reuse this object on other PdfDocument instances, please either use any of the .process overloads in this same class and convert its result to an XObject with .convertToXObject(ISvgNodeRenderer, PdfDocument) , or look into using com.itextpdf.kernel.pdf.PdfObject.copyTo(PdfDocument). @param stream the Stream
objectcontaining valid SVG content @param document the PdfDocument instance to draw on @param props ISvgConverterProperties an instance for extra properties to customize the behavior @return a XObject containing the PDF instructions corresponding to the passed SVG content @throws IOException when theStreamstream cannot be read correctly
Converts a String containing valid SVG content to an XObject that can then be used on the passed PdfDocument. This method does NOT manipulate the PdfDocument in any way.Class SvgConverter, PdfFormXObject convertToXObject(String, PdfDocument, ISvgConverterProperties)This method (or its overloads) is the best method to use if you want to reuse the same SVG image multiple times on the same PdfDocument.
If you want to reuse this object on other PdfDocument instances, please either use any of the .process overloads in this same class and convert its result to an XObject with .convertToXObject(ISvgNodeRenderer, PdfDocument) , or look into using com.itextpdf.kernel.pdf.PdfObject.copyTo(PdfDocument). @param content the String value containing valid SVG content @param document the PdfDocument instance to draw on @return a XObject containing the PDF instructions corresponding to the passed SVG content
Converts a String containing valid SVG content to an XObject that can then be used on the passed PdfDocument. This method does NOT manipulate the PdfDocument in any way.Class SvgConverter, void createPdf(File, File, ISvgConverterProperties)This method (or its overloads) is the best method to use if you want to reuse the same SVG image multiple times on the same PdfDocument.
If you want to reuse this object on other PdfDocument instances, please either use any of the .process overloads in this same class and convert its result to an XObject with .convertToXObject(ISvgNodeRenderer, PdfDocument) , or look into using com.itextpdf.kernel.pdf.PdfObject.copyTo(PdfDocument). @param content the String value containing valid SVG content @param document the PdfDocument instance to draw on @param props ISvgConverterProperties an instance for extra properties to customize the behavior @return a XObject containing the PDF instructions corresponding to the passed SVG content
Converts SVG stored in a File to a PDF File, using specific ISvgConverterProperties. @param svgFile the File containing the source SVG @param pdfFile the File containing the resulting PDF @param props a ISvgConverterPropertiesClass SvgConverter, void createPdf(File, File, ISvgConverterProperties, WriterProperties)instancean instance for extra properties to customize the behavior @throws IOException Signals that an I/O exception has occurred.
Converts SVG stored in a File to a PDF File, using specific ISvgConverterProperties and WriterProperties. @param svgFile the File containing the source SVG @param pdfFile the File containing the resulting PDF @param props a ISvgConverterPropertiesClass SvgConverter, void createPdf(InputStream, OutputStream, ISvgConverterProperties)instancean instance for extra properties to customize the behavior @param writerProps a WriterProperties for the pdf document @throws IOException Signals that an I/O exception has occurred.
Create a single page pdf containing the SVG on its page using the default processing and drawing logic @param svgStream Stream containing the SVG @param pdfDest PDF destination outputStream @param propsClass SvgConverter, void createPdf(InputStream, OutputStream, ISvgConverterProperties, WriterProperties)SvgISvgConverterProperties an instance for extra properties tochange default behaviourcustomize the behavior @throws IOException when the one of the streams cannot be read correctly
Create a single page pdf containing the SVG on its page using the default processing and drawing logic @param svgStream Stream containing the SVG @param pdfDest PDF destination outputStream @param props ISvgConverterPropertiesClass SvgConverter, void createPdf(InputStream, OutputStream, WriterProperties)to change default behaviour @paramanpdfDestinstance for extra properties toPDF destination outputStreamcustomize the behavior @param writerProps WriterProperties for the pdf document @throws IOException when the one of the streams cannot be readcorrectly public static void createPdf(InputStream svgStream,ISvgConverterProperties props, OutputStream pdfDest) throws IOException { createPdf(svgStream,props,pdfDest,null); } /** Create a single page pdf containing the SVG on its page using the default processing and drawing logic @throws IOException when the one of the streams cannot be readcorrectly
Create a single page pdf containing the SVG on its page using the default processing and drawing logic @param svgStream Stream containing the SVG @param pdfDest PDF destination outputStream @paramClass SvgConverter, void drawOnDocument(InputStream, PdfDocument, int)writerprops writerpropertieswriterProps writer properties for the pdf document @throws IOException when the one of the streams cannot be read correctly
Draws a Stream containing valid SVG to a document, on a given page number ate the origni of the page. @param stream the StreamClass SvgConverter, void drawOnDocument(InputStream, PdfDocument, int, ISvgConverterProperties)objectcontaining valid SVG content @param document the PdfDocument instance to draw on @param pageNo the page to draw on @throws IOException when the Stream cannot be read correctly
Draws a Stream containing valid SVG to a document, on a given page number on the provided x and y coordinate. @param stream the StreamClass SvgConverter, void drawOnDocument(InputStream, PdfDocument, int, float, float)objectcontaining valid SVG content @param document the PdfDocument instance to draw on @param pageNo the page to draw on @param props a container for extra properties that customize the behavior @throws IOException when the Stream cannot be read correctly
Draws a Stream containing valid SVG to a document, on a given page number on the provided x and y coordinate. @param stream the StreamClass SvgConverter, void drawOnDocument(InputStream, PdfDocument, int, float, float, ISvgConverterProperties)objectcontaining valid SVG content @param document the PdfDocument instance to draw on @param pageNo the page to draw on @param x x-coordinate of the location to draw at @param y y-coordinate of the location to draw at @throws IOException when the Stream cannot be read correctly
Draws a Stream containing valid SVG to a document, on a given page number on the provided x and y coordinate. @param stream the StreamClass SvgConverter, void drawOnDocument(String, PdfDocument, int, ISvgConverterProperties)objectcontaining valid SVG content @param document the PdfDocument instance to draw on @param pageNo the page to draw on @param x x-coordinate of the location to draw at @param y y-coordinate of the location to draw at @param props a container for extra properties that customize the behavior @throws IOException when the Stream cannot be read correctly
Draws a String containing valid SVG to a document, on a given page number on the provided x and y coordinate. @param content theClass SvgConverter, void drawOnDocument(String, PdfDocument, int, float, float, ISvgConverterProperties)Stream objectString value containing valid SVG content @param document the PdfDocument instance to draw on @param pageNo the page to draw on @param props a container for extra properties that customize the behavior
Draws a String containing valid SVG to a document, on a given page number on the provided x and y coordinate. @param content theClass SvgConverter, INode parse(InputStream)Stream objectString value containing valid SVG content @param document the PdfDocument instance to draw on @param pageNo the page to draw on @param x x-coordinate of the location to draw at @param y y-coordinate of the location to draw at @param props a container for extra properties that customize the behavior
Parse a Stream containing valid SVG into an XML DOM node, using the default JSoup XML parser. This method will assume that the encoding of the Stream is {@code UTF-8}. @param stream the StreamClass SvgConverter, INode parse(InputStream, ISvgConverterProperties)objectcontaining valid SVG content @return an XML DOM tree corresponding to the passed String input @throws IOException when the Stream cannot be read correctly
Parse a Stream containing valid SVG into an XML DOM node, using the default JSoup XML parser. This method will assume that the encoding of the Stream is {@code UTF-8}, unless specified otherwise by the method ISvgConverterProperties.getCharset() of the {@code props} parameter. @param stream the StreamClass SvgConverter, ISvgProcessorResult parseAndProcess(InputStream)objectcontaining valid SVG content @param props ISvgConverterProperties an instance for extra properties to customize the behavior @return an XML DOM tree corresponding to the passed String input @throws IOException when the Stream cannot be read correctly
Parse and process an Inputstream containing an SVG, using the default Svg processor (DefaultSvgProcessor) The parsing of the stream is done using UTF-8 as the default charset. The properties used by the processor are the SvgConverterProperties @param svgStreamClass SvgConverter, ISvgProcessorResult parseAndProcess(InputStream, ISvgConverterProperties)Input streamStream containing the SVG to parse and process @return ISvgProcessorResult containing the root renderer and metadata of the svg @throws IOException when the Stream cannot be read correctly
Parse and process an Inputstream containing an SVG, using the default Svg processor (DefaultSvgProcessor) @param svgStream Stream containing the SVG to parse and process @param props ISvgConverterPropertiesClass SvgConverter, ISvgProcessorResult process(INode, ISvgConverterProperties)usedan instance for extra properties tobycustomize theprocessorbehavior @return ISvgProcessorResult containing the root renderer and metadata of the svg @throws IOException when the Stream cannot be read correctly
Use the default implementation of ISvgProcessor to convert an XML DOM tree to a node renderer tree. The passed properties can modify the default behaviour @param root the XML DOM tree @param props ISvgConverterProperties an instance for extra properties to customize the behavior @return a node renderer tree corresponding to the passed XML DOM tree