You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2015/01/30 21:44:34 UTC

[jira] [Commented] (PDFBOX-2646) A text including single-quote is malformed with Embedded TTF font

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

John Hewson commented on PDFBOX-2646:
-------------------------------------

Thanks for the patch, but it doesn't solve the underlying problem, which is that COSWriter.writeString() is performing invalid escaping.

> A text including single-quote is malformed with Embedded TTF font
> -----------------------------------------------------------------
>
>                 Key: PDFBOX-2646
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2646
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 2.0.0
>            Reporter: Keiji Suzuki
>            Priority: Minor
>         Attachments: EmbeddedFonts.java, pdfbox.patch
>
>
> When a text including single quote is output by an embedded TTF font,  it turns into garbage. This can be reproduced by an attached code.
> This is because the cid code of single quote is 0x0A and escaped in  COSWriter.writeString(). The attached patch fixes this.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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