How to export PDF to PNG with commandline and without fonts?

Asked by Thomas on 2017-10-27

inkscape.exe file.pdf -z --export-png="out.png"
let me got a file with a wrong font.

Have I to install the font on my system or is there any way for command line options?
How I can tell inkscape that it shall use extern libs to clone with poppler/cairo to read the PDF as its possible in GUI?

I hope you can help, thanks and have a nice weekend.

Question information

English Edit question
Inkscape Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Best Hachmann (marenhachmann) said : #1

If the font the pdf file uses is not installed on your system, and also not embedded in the pdf, then Inkscape wouldn't know where to get the font from.

Is there any option when the pdf imports correctly into Inkscape? (then I guess the font is embedded in the pdf, but not installed?)

The options currently cannot be modified via command line, no.

Please have a look at these two bug reports for more info (you can subscribe yourself to get updates):

Thomas (magistromachina) said : #2

Thanks, maybe that helps. In the bug reports i read that i can change the PDF import default settings anywhere.
In the Program was the import correctly with propper/cairo, i will find to chance the default to that (but i read that would be default), maybe i get the correct results then?

Thomas (magistromachina) said : #3

I don't have found any option in the config xml file for import default settings. I follow the bug reports now, but i haven't the time to wait on updates, so i have to look for alternativ possibilities. Is there realy no way?

Thomas (magistromachina) said : #4

I had a try with pdftocairo, which was mentioned in one of the bug reports, and the result is adequately.
My problem is solved, thanks for your help.

Hachmann (marenhachmann) said : #5

You're welcome :)

Thomas (magistromachina) said : #6

Thanks Hachmann, that solved my question.