You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Ladislav Dudáš (JIRA)" <ji...@apache.org> on 2017/12/10 12:28:00 UTC

[jira] [Comment Edited] (PDFBOX-4032) Handle correctly special characters while writing COSString

    [ https://issues.apache.org/jira/browse/PDFBOX-4032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16285223#comment-16285223 ] 

Ladislav Dudáš edited comment on PDFBOX-4032 at 12/10/17 12:27 PM:
-------------------------------------------------------------------

I created simple file with Foxit PhantomPDF. The "Title" in document info dictionary contain text with tab, which is written as sequence `\t`. Every creator do that differently. :)


was (Author: dudasl):
I created simple file with Foxit PhantomPDF. The "Title" in document info dictionary contain text with tab, which is written as sequence `\t`

> Handle correctly special characters while writing COSString
> -----------------------------------------------------------
>
>                 Key: PDFBOX-4032
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4032
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Writing
>    Affects Versions: 2.0.8
>            Reporter: Ladislav Dudáš
>             Fix For: 2.0.9
>
>         Attachments: Contains_tab_bad.pdf, Contains_tab_bad_offset-corrected-saved_by_adobe.pdf, Contains_tab_bad_offset-corrected.pdf, Contains_tab_ok.pdf, Tab in Title - Foxit.pdf
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Regarding to case PDFBOX-3107. There was change in CosWritter.java that if string contains characters CR (0x0d) and LF (0x0a) the string is written in hex format. This may be ok, but PDF specification (7.3.4.2 Literal Strings) explicitly defines more characters that should handle specially.
> I'm providing another version of the code that handles all special characters without transforming to hex format.
> PR [#41|https://github.com/apache/pdfbox/pull/41]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org