Bug 48927 - PDF export of a vector drawing replaces text by tiny curves and lines
Summary: PDF export of a vector drawing replaces text by tiny curves and lines
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
3.5.2 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords: filter:pdf
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2012-04-19 12:00 UTC by cedric.dewijs
Modified: 2019-05-08 20:49 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
A screenshot showing the origional in inkscape, the pasted text in libreoffice, and the exported PDF in sumatraPDF (130.30 KB, image/png)
2012-04-19 12:00 UTC, cedric.dewijs
Details
the produced PDF (120.39 KB, application/pdf)
2012-04-19 12:04 UTC, cedric.dewijs
Details
phd thesis of ralph levien for better curves and fonts (6.89 MB, application/pdf)
2018-09-17 09:58 UTC, paulystefan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cedric.dewijs 2012-04-19 12:00:08 UTC
Created attachment 60334 [details]
A screenshot showing the origional in inkscape, the pasted text in libreoffice, and the exported PDF in sumatraPDF

Problem description: 

Steps to reproduce:
1. Download the following PDF:
http://ww1.microchip.com/downloads/en/DeviceDoc/41239D.pdf 
2. Open the pdf in inkscape 0.48.2 r9819, using the following settings (these
are the defaults):
Select page 4 out of 96
[don't] clip to media box
precision: 2.0
text handling: import text as text
[do] replace PDF fonts by closest-named installed fonts
[do] embed images
3. Start libreoffice writer, and make a new text document (ctrl-N)
4. In inkscape, select all, and copy (ctrl-A and ctrl-C)
5. In libreoffice writer, paste (ctrl-V)
6. Export the file to PDF, with the following settings (these are the defaults)
Range: 
[X]all
Images: 
[ ] lossless compression
[X] JPEG compression, quality: 90%
[ ] Reduce image resolution
General
[ ] Embed OpenDocument file
[ ]PDF/A-1a
[ ]tagged PDF
[X]create PDF form, submit format FDF
[ ]allow duplicate field names
[X]export bookmarks
[ ]export comments
[ ]export automatically inserted blank pages
[X]embed standard fonts
7. Open the exported pdf file in SumatraPDF.

Current behavior:
The text "SOT-23 Pin Diagrams" is not exported to PDF correctly. When the text is zoomed in sumatraPDF, it's visible that the 3 is not smooth, but instead it looks like it has been composed out of lines and curves. 

Expected behavior:
The text should have been exported as text, so it would have been smooth.

Platform (if different from the browser): 
              
Browser: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
Comment 1 cedric.dewijs 2012-04-19 12:04:42 UTC
Created attachment 60335 [details]
the produced PDF
Comment 2 bfoman (inactive) 2012-04-27 02:06:13 UTC
Confirmed with:
LOdev 3.5.3rc1+ 
Build ID: 51648779-22e3d74-d554af7
Windows 7 Professional SP1 32/64 bit
Inkscape 0.48.2 r9819
Adobe Reader 9.5.0.270

The same result.
Comment 3 tommy27 2013-09-04 21:04:28 UTC
is it still reproducible with recent 4.0.5 or 4.1.1 releases?
Comment 4 QA Administrators 2015-04-01 14:40:03 UTC Comment hidden (obsolete)
Comment 5 cedric.dewijs 2015-04-01 18:36:48 UTC
Steps to reproduce:
1. Download the following PDF:
http://ww1.microchip.com/downloads/en/DeviceDoc/41239D.pdf 
2. Open the pdf in Inkscape 0.91 r13725, using the following settings (these are the defaults):
Select page 4 out of 96
[don't] clip to media box
precision: 2.0
text handling: import text as text
[do] replace PDF fonts by closest-named installed fonts
[do] embed images
3. Start libreoffice writer Version: 4.4.1.2, and make a new text document (ctrl-N)
4. In inkscape, select all, and copy (ctrl-A and ctrl-C)
5. In libreoffice writer, paste (ctrl-V)
6. Export the file to PDF (File->export as pdf), with the following settings (these are the defaults)
Range: [X]all
Images: 
[ ] lossless compression
[X] JPEG compression, quality: 90%
[X] Reduce image resolution 300DPI
General
[ ] Hybrid PDF (embed ODF file)
[ ]PDF/A-1a
[ ]tagged PDF
[X]create PDF form, submit format FDF
[ ]allow duplicate field names
[X]export bookmarks
[ ]export comments
[ ]export automatically inserted blank pages
[] View PDF after export
7. Open the exported pdf file in SumatraPDF v3.0.

Current behavior:
The text "SOT-23 Pin Diagrams" is not imported in openoffice correctly. When the original text is zoomed in sumatrapdf, it's smooth. When it's zoomed in writer, it's pixelated, so it's not imported as vector graphics anymore, but instead as bitmap. After exporting into pdf again, the text remains pixelated.

Expected behavior:
The text should have been both imported and exported as text, so it would have been smooth.

Platform:
Windows 7 Pro SP1 64bit
Inkscape 0.91 r13725
libreoffice writer Version: 4.4.1.2
SumatraPDF v3.0
Comment 6 tommy27 2016-04-16 07:26:05 UTC Comment hidden (obsolete)
Comment 7 paulystefan 2017-11-28 18:48:51 UTC
also in 5.4.3.2 x64 win 10

fonts problem, some bezier curves not good?
Comment 8 paulystefan 2017-11-28 18:50:11 UTC
but is not pixelated.
Comment 9 Timur 2018-04-19 09:51:42 UTC
Original document, PDF here, must be attached to the ticket. Link doesn't work. 
Please do and test with current LO master 6.1+ from https://dev-builds.libreoffice.org/daily/master/
Comment 10 paulystefan 2018-09-17 09:58:46 UTC
Created attachment 144930 [details]
phd thesis of ralph levien for better curves and fonts

i see the problem in acrobat reader with highest zooms like 1600 to 6400%

so it is not seen in low zoom like 200%.

so it is a question of bezier quality in fonts. 

so look at http://levien.com/spiro/

with his new spiro curves for fonts with best quality.

also his phd shows new spiro curves based on euler spiral curves and  how bezier curves should be done for best quality.

http://levien.com/phd/thesis.pdf 


see for bezier errors graphics in page 141 

spiro curves are available in inkscape and available as open source.
Comment 11 paulystefan 2018-09-17 10:09:40 UTC
phd thesis of Raph Levien
Comment 12 paulystefan 2018-09-17 10:15:23 UTC
see also new fonts of Raph Levien

http://levien.com/type/myfonts/



so in my opinion two questions: basic quality of fonts and quality of curve drawing with great zoom. This can be different work places.
Comment 13 paulystefan 2018-09-17 10:42:51 UTC
see also spiro tutorial in fontforge

https://fontforge.github.io/editspiro.html

and inkscape tool spiro curve

with https://www.youtube.com/watch?v=3OaLZuFZxdk 

and http://www.segtsy.com/2012/04/spiro-mode-in-inkscape-makes-a-perfect-curve/

and http://verysimpledesigns.com/vectors/inkscape-tutorial-sketch-and-hatch.html

This spiro curve tool should be implemented in LO DRAW.
Comment 14 QA Administrators 2019-03-21 11:11:03 UTC Comment hidden (obsolete)
Comment 15 QA Administrators 2019-05-08 20:49:43 UTC
Dear cedric.dewijs,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp