You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Axel Dörfler (JIRA)" <ji...@apache.org> on 2013/01/21 11:38:13 UTC

[jira] [Comment Edited] (PDFBOX-1213) Adding style information to the PDF to HTML converter

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

Axel Dörfler edited comment on PDFBOX-1213 at 1/21/13 10:38 AM:
----------------------------------------------------------------

The attached patches add an optional TextPosition list parameter to writeString().
Furthermore, I implemented a simple bold/italic detection in PDFText2HTML.

Would be nice to include this in PDFBox in future releases.
                
      was (Author: axeld):
    The attached patches add an optional TextPosition list parameter to writeString().

Furthermore, I implemented a simple bold/italic detection in PDFText2HTML.
                  
> Adding style information to the PDF to HTML converter
> -----------------------------------------------------
>
>                 Key: PDFBOX-1213
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1213
>             Project: PDFBox
>          Issue Type: Improvement
>    Affects Versions: 1.6.0
>            Reporter: Enrique Pérez
>         Attachments: diff.patch, pdf-text-stripper.patch, pdf-to-html.patch
>
>
> This patch modifies the PDF to HTML conversion in order to add style information (bold, italic and size font) in the resulting file. Moreover, we have deleted the "DOCTYPE" header because some parsers throws the following exception:
> [Fatal Error] loose.dtd:31:3: The declaration for the entity "HTML.Version" must end with '>'.
> org.xml.sax.SAXParseException: The declaration for the entity "HTML.Version" must end with '>'.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira