Replies: 4 comments
-
In the old iText version you could use PDF files in the src Attribute of img Tags - if done so it does include the vector graphics inside this other PDF - that's what I've used in the past to workaround adding SVGs |
Beta Was this translation helpful? Give feedback.
-
You can try to use Apache Batik library for that. It’s need to make the following steps:
Notice, that you can use the same instance of the image object as you need to use the same image in pdf file. It helps to reduce the size of the generated pdf file. |
Beta Was this translation helpful? Give feedback.
-
This solution is partially works for me.
Is i made something wrong? |
Beta Was this translation helpful? Give feedback.
-
@RangerMak I have notice, that From my tests, you can use a transparent rectangle, and the size will be obtained correctly, without adding any undesired background color to the image. |
Beta Was this translation helpful? Give feedback.
-
Hi,
We want to use SVG files to add icons in PDF. Is there any standard way to do that using OpenPDF?
Beta Was this translation helpful? Give feedback.
All reactions