Convert SVG to PDF issue

Post questions on how to use or achieve an effect in Inkscape.
titan86vn
Posts: 3
Joined: Wed Sep 14, 2016 9:19 pm

Convert SVG to PDF issue

Postby titan86vn » Wed Sep 14, 2016 9:47 pm

Hi,

I'm working on project to create chart pdf file for vector graphic editor. The scenario is: From the highcharts svg image, we must convert it into pdf that contains the image generated.

So I created a phantomjs service that will receive options from client, then build pdf files based on it. It worked as expected but text of chart inside pdf is not selectable (run on Windows server 2012)

So that I changed plan and force phantomjs render SVG, then use Inkscape to convert to pdf (like this: inkscape chart.svg --export-pdf=chart.pdf) then send it to client.

All worked as expected on my work station like this: Image, but after deploy to server (windows server 2012) all text disappeared like this: Image

I've installed inkscape with my own account (granted permission by administrator), the process to run inkscape to convert based on another account (IIS account, and all granted by administrator that I cannot access) That convert worked with my account (have full text after run convert command) but not that account (IIS account) and I don't know what happened.

I go through many pages to find the solution but have no luck, anything I can do I have been tried them all but did not worked. I cannot ask administrator to check that account because it based on contract and permission so I stucked with it for days. So, please guide me (or suggest me what keyword ) which can be used to solve this issue.

Thanks.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Convert SVG to PDF issue

Postby Moini » Thu Sep 15, 2016 12:02 am

Are you using flowed texts (created by dragging a box) or normal texts (created by clicking)? Flowed texts are Inkscape-only, see FAQ:
https://inkscape.org/en/learn/faq/#Flow ... orted_file
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

titan86vn
Posts: 3
Joined: Wed Sep 14, 2016 9:19 pm

Re: Convert SVG to PDF issue

Postby titan86vn » Thu Sep 15, 2016 2:28 am

Hi,
I'm not sure about that, here is my svg chart: http://pastebin.com/rfnVc9CP
Strange that when I convert it in my pc, it worked. but on server is not. I think there are some restrict on server that prevent inkscape to render text but I cannot find any document say about it.

v1nce
Posts: 696
Joined: Wed Jan 13, 2010 4:36 am

Re: Convert SVG to PDF issue

Postby v1nce » Thu Sep 15, 2016 4:59 am

Font "Lucida Grande" is not installed on server ?

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Convert SVG to PDF issue

Postby Moini » Thu Sep 15, 2016 7:44 am

Funny, I don't see Lucida Grande being replaced, but get the message:
Font 'RetinaStd-A04' substituted with 'DejaVu Sans'
Font 'Rocky Regular' substituted with 'DejaVu Sans'

Usually, they should be replaced, not just not appearing... And they are not flowed text, so that is not the problem. Weird... :-/
We've had something similar recently, with things working well on one account, but not on another, but didn't find the reason there, either. Maybe you could ask for input on the user mailing list? Sometimes the devs read there, too, and can give some insight.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

titan86vn
Posts: 3
Joined: Wed Sep 14, 2016 9:19 pm

Re: Convert SVG to PDF issue

Postby titan86vn » Thu Sep 15, 2016 12:31 pm

Hi,
All fonts have been installed on that server with my account.

For mailing lists: https://inkscape.org/en/community/mailing-lists/ I found Inkscape user mailing lists in it. Is it right for begin?

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Convert SVG to PDF issue

Postby Moini » Thu Sep 15, 2016 8:40 pm

Yep, that's the one! Sorry for forgetting to insert the link :/
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)


Return to “Help with using Inkscape”