pdfcpu icon indicating copy to clipboard operation
pdfcpu copied to clipboard

svg support

Open Insua opened this issue 2 years ago • 3 comments

add vector image to pdf need supported,is there any plan to do it

Insua avatar May 09 '22 01:05 Insua

Hi!

Right now there are no plans for supporting svg natively.

I believe you can use ImageMagicks convert command to convert your svg to png for example and then use pdfcpu's create, import or stamp command.

hhrutter avatar May 09 '22 17:05 hhrutter

I both have png and svg,but svg is vector image,png is bitmap image,after zoom,the png image will be blurred In my case,I will put the signatrue vector image,so I want to be clearly after zoom. If support svg will be a big suprise.

Insua avatar May 10 '22 01:05 Insua

You need to set your output dimensions during the conversion: https://stackoverflow.com/questions/9853325/how-to-convert-a-svg-to-a-png-with-imagemagick

hhrutter avatar May 10 '22 09:05 hhrutter

Closed due to inactivity.

hhrutter avatar Mar 05 '23 09:03 hhrutter