Issue 19674 - PDF export produces weird looking PDFs
Summary: PDF export produces weird looking PDFs
Status: CLOSED FIXED
Alias: None
Product: Draw
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 RC4
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: wolframgarten
QA Contact: issues@graphics
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-17 06:54 UTC by Unknown
Modified: 2019-10-26 19:57 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Reduced testcase for the described problem (6.12 KB, application/octet-stream)
2003-10-17 16:43 UTC, thb
no flags Details
is the pdf contain the defect (95.40 KB, application/pdf)
2019-10-26 19:57 UTC, agung
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2003-09-17 06:54:01 UTC
When I try to export 
http://www.elis.ugent.be/~fcorneli/downloads/devel/pdpta2003.sxd
to a PDF the result looks really ugly.
Comment 1 wolframgarten 2003-09-17 07:51:24 UTC
This is reproducible in 1.1 RC4 and in a current internal version. The
first problem is the blue ellipse causing problems in the pdf export:
it looks distorted. A second problem (only on Linux) are the
connectors. They are producing white rectangles arround them. Seems to
be a clipping problem. 
Comment 2 wolframgarten 2003-09-17 07:51:57 UTC
Reassigned to Sven. Please have a look. Thanks.
Comment 3 sorrodp 2003-09-26 10:35:09 UTC
I have tried opening pdpta2003.sxd in my system with 1.1 RC5, and I
also get the weirdness of the circles in the PDF output.

I opened it up in my old 1.0.3.1 (Mandrake package
OpenOffice.org-1.0.3-2mdk), and the output PDF correctly draws the
circles as they are in the source .sxd file.

For reference, my 1.0.3.1 has a PDF writer device set-up as a printer
for PDF generation using GS:

/usr/bin/gs -q -dNOPAUSE -sDEVICE=pdfwrite -dCompatibilityLevel=1.4
-dPDFSETTINGS=/prepress -dAutoFilterColorImages=false
-sColorImageFilter=FlateEncode -dAutoFilterGrayImages=false
-sGrayImageFilter=FlateEncode -sOutputFile="(OUTFILE)" -

The one problem with these "gs" parameters is that I get a warning
about the transparency of some objects in the .sxd file.   I can
choose to reduce the transparency or keep it.  If I keep it, the PDF
generation fails...  and if I reduce it, well, then there is no
transparency, and the background tornado cannot be seen in the
resulting PDF.
Comment 4 sven.jacobi 2003-10-08 08:02:37 UTC
Hi Thorsten,
can you please takeover this bug, please.
Comment 5 thb 2003-10-17 16:40:26 UTC
And another one for you. Problem here is probably a not/incorrectly
implemented OutDev::DrawTransparent method on the PDF writer. Seems
that the metafile content is painted completely without transparency
and white background.
Comment 6 thb 2003-10-17 16:43:14 UTC
Created attachment 10408 [details]
Reduced testcase for the described problem
Comment 7 philipp.lohmann 2003-11-04 18:36:23 UTC
pl->tbe: DrawTransparent doesn't even get called in your reduced
sample (although it does in pdpta2003.sxd). Instead a JPG image is
printed; i suspect that the pdf filter does its own alpha compositing
here. Also your reduced test case shows that the arcs have "funny"
line ends; i can only see that DrawPolygon gets called here, i don't
know what could be wrong with that (i tested in a version that already
contains the fix for issue 19616, so it has nothing to do with bezier
style polygons). Could you please have another look ?
Comment 8 thb 2003-11-21 14:12:45 UTC
Okay, will do.
Comment 9 thb 2004-04-30 20:12:02 UTC
Okay, the transparency issue seems to be fixed. Please verify in a OOo1.1.1. There remains an issue 
with the large transparent oval, which gets completely botched for high output resolutions (try press-
optimized, or even print-optimized in a 680_m33).

This latter issue is due to some serious 
integer overflow in bezier subdivision. This will be fixed in one of the next 680er (OOo2.0) builds.
Comment 10 thb 2004-05-10 11:28:49 UTC
Fixed, please verify.
Comment 11 wolframgarten 2004-05-11 11:10:12 UTC
Set to fixed.
Comment 12 wolframgarten 2004-05-11 11:10:29 UTC
Verified in CWS.
Comment 13 wolframgarten 2004-05-28 09:20:16 UTC
Tested in master. Closed.
Comment 14 agung 2019-10-26 19:57:50 UTC
Created attachment 86754 [details]
is the pdf contain the defect

export pdf error when converting my writing:
double quote symbol became 'a' and 'o' in superscript

sample output is in the attachment. Thx