Issue 88209 - PDF export includes ZWNJ in generated PDF document
Summary: PDF export includes ZWNJ in generated PDF document
Status: ACCEPTED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 2.4.0
Hardware: All All
: P3 Trivial with 6 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-12 21:54 UTC by mebrahim
Modified: 2017-05-20 10:55 UTC (History)
4 users (show)

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


Attachments
Original ODT document (7.60 KB, application/vnd.oasis.opendocument.text)
2008-04-12 21:55 UTC, mebrahim
no flags Details
Generated PDF document (4.46 KB, application/pdf)
2008-04-12 21:55 UTC, mebrahim
no flags Details
Image of original ODT document and my OOo version (92.81 KB, image/png)
2008-04-12 21:56 UTC, mebrahim
no flags Details
Image of the generated PDF document in KPDF 3.5.9 (22.34 KB, image/png)
2008-04-12 21:57 UTC, mebrahim
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description mebrahim 2008-04-12 21:54:40 UTC
Hi,
When I export a document containing some ZWNJ characters into a PDF document,
the result contains ZWNJ characters, while it should not.
Comment 1 mebrahim 2008-04-12 21:55:27 UTC
Created attachment 52780 [details]
Original ODT document
Comment 2 mebrahim 2008-04-12 21:55:51 UTC
Created attachment 52781 [details]
Generated PDF document
Comment 3 mebrahim 2008-04-12 21:56:29 UTC
Created attachment 52782 [details]
Image of original ODT document and my OOo version
Comment 4 mebrahim 2008-04-12 21:57:17 UTC
Created attachment 52783 [details]
Image of the generated PDF document in KPDF 3.5.9
Comment 5 thorsten.martens 2008-04-14 11:47:51 UTC
TM->HI: please have a look.
Comment 6 philipp.lohmann 2008-04-14 14:36:07 UTC
pl->hdu: Good question, should PDF contain ZWNJ or not ?
Comment 7 hdu@apache.org 2008-04-14 15:09:21 UTC
ZWNJ is supposed to be invisible, so it shouldn't matter. Keeping ZWNJ would probably benefit searching 
for text though.

@PL: there are two possible solutions:
- filtering ZWNJ out when writing PDF's drawtext, which probably causes problems when someone tries to 
copy text from the PDF into other applications
- embed an empty glyph into the font subset instead of the standard behaviour of showing notdef for 
glyphs not known to the font
Comment 8 philipp.lohmann 2008-04-14 15:12:18 UTC
@hdu: I think substituting the empty glyph would be best; as you said this will
keep the ZWNJ for e.g. copy and paste.
Comment 9 zwnj 2008-04-14 17:02:36 UTC
Actually ZWNJ can have a glyph, as the font in the screenshots, Nazli, do. 
Because editors can show them when display-control-characters is on.

@hdu, Yes, I think having the character, but using an embedded empty glyph would
be the best solution.

Thanks all, Behnam.
Comment 10 Marcus 2017-05-20 10:55:24 UTC
Reset assigne to the default "issues@openoffice.apache.org".