Italic parameter not saved during PDF to SVG migration

Bug #1653673 reported by Inkescaper
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

By using Inkscape v0.91 for migrating PDF drawing to SVG format, I have observed that some text items using "italic" rendering are migrating WITHOUT keeping this property.

Do you have any idea is there some specific option to use or if it is an issue?

Here is real command line used:
inkscape.exe -f "MS40081V2.pdf" --without-gui --export-background-opacity=0 --export-plain-svg="MS40081V2.svg"

Best Regards,

Tags: importing pdf
Revision history for this message
Hachmann (marenhachmann) wrote :

Does it work correctly if you do it via the interface, and check the *import via poppler* option? (uncheck for comparison, to see if this only affects command line)

Revision history for this message
su_v (suv-lp) wrote :

Please attach a test case (PDF file) which exposes the reported issue to allow further investigation on other systems. Please also provide any known details about fonts required to be installed locally (Inkscape does not use fonts embedded in PDF files).

tags: added: importing
Changed in inkscape:
status: New → Incomplete
Revision history for this message
Inkescaper (stephane-lecolier) wrote :

Please find example of typical PDF including red text in italic.

Revision history for this message
Inkescaper (stephane-lecolier) wrote :

Text items are in Arial.

No specific fonts.

Revision history for this message
Inkescaper (stephane-lecolier) wrote :

When option "Import via Poppler" is checked, it seems that italic property is kept.

In that case, the question is:

How to activate this option from inkscape command line?
I have found nothing on this subject.

su_v (suv-lp)
Changed in inkscape:
status: Incomplete → New
Revision history for this message
su_v (suv-lp) wrote :

The PDF import option 'Import via Poppler' (aka 'Poppler/Cairo import' in upcoming Inkscape 0.92) is not available via command-line in Inkscape (related feature request: bug #1507740) - on Linux, you can use the standalone binary 'pdftocairo' installed with the poppler library instead (it does the same as Inkscape's 'Import via Poppler' option). The command-line tool 'pdftocairo' is not part of Inkscape, and likely not easily available for Inkscape users on Windows.

Note that the poppler/cairo-based PDF->SVG conversion does not keep text as editable text content: glyphs are outlined as paths, and inserted as clones (<use> references) for recurring instances of the same characters.

Revision history for this message
Inkescaper (stephane-lecolier) wrote :

It seems that for PDF including bookmarks, SVG conversion is NOT done properly.

Do you know if there are some options to use with pdf2cairo to not take into account bookmarks?

From Inkscape GUI, there no issue by using 'Import via Poppler', but from PDF2 Cairo command line, SVG drawing is not always generated correctly.

Revision history for this message
shoeb ansari (shoansa) wrote :

I have the same issue. When converting PDF to SVG with Inkscape Command line(with and without text as path both) text is not rendering as in PDF, in SVG.

When I convert the same file with Inkscape GUI and select Import setting "Poppler/Cairo import" it works properly. Doesn't even work with Import setting "Internal import" in GUI.

Details

Inkscape 0.92.3 (2405546, 2018-03-11)
Windows 10

Attaching PDF file.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.