[
https://issues.apache.org/jira/browse/PDFBOX-4032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16283940#comment-16283940
]
ASF GitHub Bot commented on PDFBOX-4032:
----------------------------------------
GitHub user dudasl opened a pull request:
https://github.com/apache/pdfbox/pull/41
PDFBOX-4032: Handle correctly write special characters '\n' (LF), '\r…
Pull request for
[PDFBOX-4032](https://issues.apache.org/jira/browse/PDFBOX-4032)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dudasl/pdfbox PDFBOX-4032
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/pdfbox/pull/41.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #41
----
commit 4288f64f9cf1cf76cdc38284d29c6dd4af787f26
Author: Ladislav Dudáš <[email protected]>
Date: 2017-12-08T17:59:02Z
PDFBOX-4032: Handle correctly write special characters '\n' (LF), '\r'
(CR), '\t' (HT), '\b' (BS) and '\f' (FF) in COSString
----
> 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
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]