i am using inkscape through perl syntax. sometimes for testing purpose i tried in command prompt also. both in all the ways frequently generated pdf looks empty white square box.
in perl i have tried both the below syntaxes but both are working sometimes but not many times:
can you help me in this issue? any help would be very much helpful for me? if any standalone tool for converting SVG to pdf that also useful for us? even if it is paid tool to run on command line. i will ready to buy it.
Thanks for your responses, i came to understand one issue.
when i render mathjax svg to pdf using inkscape. point size of the text are 663pt, based on the width and height of the svg in ex value. if i reduce the width and height of the svg and then i create pdf with 9.5pt size of text. pdf generates correctly, without any empty 1kb pdf sizes.
can you please share your thought? is this the reason for the issue i mentioned?
hi all,
i am converting SVG to pdf using inkscape through windows command prompt. my syntax is
inkscape D:/svg2pdf/m2.svg -o D:/svg2pdf/m2.pdf
this command creates pdf for the same svg one time but next time it creates empty white square box as pdf.
conversion is unpredictable.
is there any reason. or anything i missed. please help me.
regards,
Srikrishnan
Hi Tyler,
Thanks for your response
I am using Windows 10 Pro
i have installed newly inkscape-1.2.2_2022-12-09_732a01da63-x64.msi
regards,
Srikrishnan
Hi Tyler,
i am using inkscape through perl syntax. sometimes for testing purpose i tried in command prompt also. both in all the ways frequently generated pdf looks empty white square box.
in perl i have tried both the below syntaxes but both are working sometimes but not many times:
`inkscape "$outPath$fileName/$eqnNum\.svg" -o "$outPath$fileName/$eqnNum\.pdf"`;
system("inkscape \"$outPath$fileName/$eqnNum\.svg\" -o \"$outPath$fileName/$eqnNum\.pdf\"");
regards,
Srikrishnan
Dear Tyler Durden,
can you help me in this issue? any help would be very much helpful for me? if any standalone tool for converting SVG to pdf that also useful for us? even if it is paid tool to run on command line. i will ready to buy it.
regards,
Srikrishnan
Hi Tyler Durden,
I tried another one of my server windows. in that also i encountered same error:
inkscape --debug-info
Inkscape 1.2.2 (732a01da63, 2022-12-09)
GLib version: 2.74.3
GTK version: 3.24.35
glibmm version: 2.66.5
gtkmm version: 3.24.7
libxml2 version: 2.10.3
libxslt version: 1.1.37
Cairo version: 1.17.7
Pango version: 1.50.12
HarfBuzz version: 5.3.1
OS version: Windows Server 2019 1809
regards,
Srikrishnan
Here are the bug reports tagged with CLI and pdf: https://gitlab.com/inkscape/inbox/-/issues/?search=pdf&sort=created_date&state=all&label_name%5B%5D=command%20line%20interface%20%28CLI%29&first_page_size=50
I'd look for any issues similar to what you are seeing.
Hi Tyler Durden,
Thanks for your responses, i came to understand one issue.
when i render mathjax svg to pdf using inkscape. point size of the text are 663pt, based on the width and height of the svg in ex value. if i reduce the width and height of the svg and then i create pdf with 9.5pt size of text. pdf generates correctly, without any empty 1kb pdf sizes.
can you please share your thought? is this the reason for the issue i mentioned?
regards,
Srikrishnan