You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Sebastian Ortiz V (JIRA)" <ji...@apache.org> on 2009/05/21 19:01:45 UTC

[jira] Created: (PDFBOX-478) PDFToImage don't render text in iText generated PDF

PDFToImage  don't render text in iText generated PDF 
-----------------------------------------------------

                 Key: PDFBOX-478
                 URL: https://issues.apache.org/jira/browse/PDFBOX-478
             Project: PDFBox
          Issue Type: Bug
          Components: Utilities
         Environment: Ubuntu 8.10 with resticted fonts extras, jdk 1.6.0.7, itext 2.1.4
            Reporter: Sebastian Ortiz V
             Fix For: 0.8.0-incubator


When try to PDFToImage a pdf with text added with the iText library, the result image don't contain the text.

I debugged a little the pdfbox, and found that the text is extracted well in the class org/apache/pdfbox/pdmodel/font/PDType1Font.java the String is drawed in the graphics as should be ( i think so ) 

If i write the BufferedImage in PDPage convertToImage() the image don't contains anything. i belive the issue is that the graphics objects where the PDType1Font1 draws the string is not the "same", or something related.

a PDF to test can be found at http://itext.ugent.be/library/com/lowagie/examples/general/HelloWorldPdf.pdf

Thanks.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (PDFBOX-478) PDFToImage don't render text in iText generated PDF

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler resolved PDFBOX-478.
---------------------------------------

    Resolution: Fixed

I've found a work around for your problem. You have to deactivate the clipping operators (see PageDrawer.properties in the Resources directory) and everything works fine. Obviously the added formular text is somehow overwritten, if clipping is active.

Because of some other sideffects I've created a new issue (PDFBOX-483) for the clipping part and will close this issue as resolved.

> PDFToImage  don't render text in iText generated PDF 
> -----------------------------------------------------
>
>                 Key: PDFBOX-478
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-478
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>         Environment: Ubuntu 8.10 with resticted fonts extras, jdk 1.6.0.7, itext 2.1.4
>            Reporter: Sebastian Ortiz V
>             Fix For: 0.8.0-incubator
>
>         Attachments: report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d27.pdf, report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d271.jpg
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When try to PDFToImage a pdf with text added with the iText library, the result image don't contain the text.
> I debugged a little the pdfbox, and found that the text is extracted well in the class org/apache/pdfbox/pdmodel/font/PDType1Font.java the String is drawed in the graphics as should be ( i think so ) 
> If i write the BufferedImage in PDPage convertToImage() the image don't contains anything. i belive the issue is that the graphics objects where the PDType1Font1 draws the string is not the "same", or something related.
> a PDF to test can be found at http://itext.ugent.be/library/com/lowagie/examples/general/HelloWorldPdf.pdf
> Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PDFBOX-478) PDFToImage don't render text in iText generated PDF

Posted by "Jens Kraemer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12716923#action_12716923 ] 

Jens Kraemer commented on PDFBOX-478:
-------------------------------------

I have the same problem with PDF documents generated by openoffice.org 3 on a Mac.

Can provide samples if desired.

> PDFToImage  don't render text in iText generated PDF 
> -----------------------------------------------------
>
>                 Key: PDFBOX-478
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-478
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>         Environment: Ubuntu 8.10 with resticted fonts extras, jdk 1.6.0.7, itext 2.1.4
>            Reporter: Sebastian Ortiz V
>             Fix For: 0.8.0-incubator
>
>         Attachments: report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d27.pdf, report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d271.jpg
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When try to PDFToImage a pdf with text added with the iText library, the result image don't contain the text.
> I debugged a little the pdfbox, and found that the text is extracted well in the class org/apache/pdfbox/pdmodel/font/PDType1Font.java the String is drawed in the graphics as should be ( i think so ) 
> If i write the BufferedImage in PDPage convertToImage() the image don't contains anything. i belive the issue is that the graphics objects where the PDType1Font1 draws the string is not the "same", or something related.
> a PDF to test can be found at http://itext.ugent.be/library/com/lowagie/examples/general/HelloWorldPdf.pdf
> Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PDFBOX-478) PDFToImage don't render text in iText generated PDF

Posted by "Sebastian Ortiz V (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12719156#action_12719156 ] 

Sebastian Ortiz V commented on PDFBOX-478:
------------------------------------------

I identified is a font problem. 

I made a basic test with a type 1 font and is working, not yet solved this issue.

Can you try to use a True Type Font , or type 1 ?



> PDFToImage  don't render text in iText generated PDF 
> -----------------------------------------------------
>
>                 Key: PDFBOX-478
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-478
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>         Environment: Ubuntu 8.10 with resticted fonts extras, jdk 1.6.0.7, itext 2.1.4
>            Reporter: Sebastian Ortiz V
>             Fix For: 0.8.0-incubator
>
>         Attachments: report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d27.pdf, report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d271.jpg
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When try to PDFToImage a pdf with text added with the iText library, the result image don't contain the text.
> I debugged a little the pdfbox, and found that the text is extracted well in the class org/apache/pdfbox/pdmodel/font/PDType1Font.java the String is drawed in the graphics as should be ( i think so ) 
> If i write the BufferedImage in PDPage convertToImage() the image don't contains anything. i belive the issue is that the graphics objects where the PDType1Font1 draws the string is not the "same", or something related.
> a PDF to test can be found at http://itext.ugent.be/library/com/lowagie/examples/general/HelloWorldPdf.pdf
> Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (PDFBOX-478) PDFToImage don't render text in iText generated PDF

Posted by "Sebastian Ortiz V (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714940#action_12714940 ] 

Sebastian Ortiz V edited comment on PDFBOX-478 at 5/31/09 5:12 PM:
-------------------------------------------------------------------

Thanks for looking Andreas,

Edit: Working after download again the pdfbox.

      was (Author: svasquez):
    Thanks for looking Andreas,

Can you be more specific about your actual configuration. I got the same problem under Windows/Linux

To test I use command line with the following command 

java -cp fontbox-0.8.0-incubating.jar:pdfbox-0.8.0-incubating.jar:log4j-1.2.15.jar org.apache.pdfbox.PDFToImage -imageType jpg HelloWorld.pdf 

And i got the same issue.

I have not implementation.

  
> PDFToImage  don't render text in iText generated PDF 
> -----------------------------------------------------
>
>                 Key: PDFBOX-478
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-478
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>         Environment: Ubuntu 8.10 with resticted fonts extras, jdk 1.6.0.7, itext 2.1.4
>            Reporter: Sebastian Ortiz V
>             Fix For: 0.8.0-incubator
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When try to PDFToImage a pdf with text added with the iText library, the result image don't contain the text.
> I debugged a little the pdfbox, and found that the text is extracted well in the class org/apache/pdfbox/pdmodel/font/PDType1Font.java the String is drawed in the graphics as should be ( i think so ) 
> If i write the BufferedImage in PDPage convertToImage() the image don't contains anything. i belive the issue is that the graphics objects where the PDType1Font1 draws the string is not the "same", or something related.
> a PDF to test can be found at http://itext.ugent.be/library/com/lowagie/examples/general/HelloWorldPdf.pdf
> Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (PDFBOX-478) PDFToImage don't render text in iText generated PDF

Posted by "Sebastian Ortiz V (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714943#action_12714943 ] 

Sebastian Ortiz V edited comment on PDFBOX-478 at 6/1/09 9:32 AM:
------------------------------------------------------------------

This a sample file to convert and the output generated by pdfbox.

The file is converted using command line PDFToImage

The file was modified by using iText.

      was (Author: svasquez):
    This a sample file to convert and the output generated by pdfbox.

The file was modified by using iText.
  
> PDFToImage  don't render text in iText generated PDF 
> -----------------------------------------------------
>
>                 Key: PDFBOX-478
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-478
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>         Environment: Ubuntu 8.10 with resticted fonts extras, jdk 1.6.0.7, itext 2.1.4
>            Reporter: Sebastian Ortiz V
>             Fix For: 0.8.0-incubator
>
>         Attachments: report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d27.pdf, report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d271.jpg
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When try to PDFToImage a pdf with text added with the iText library, the result image don't contain the text.
> I debugged a little the pdfbox, and found that the text is extracted well in the class org/apache/pdfbox/pdmodel/font/PDType1Font.java the String is drawed in the graphics as should be ( i think so ) 
> If i write the BufferedImage in PDPage convertToImage() the image don't contains anything. i belive the issue is that the graphics objects where the PDType1Font1 draws the string is not the "same", or something related.
> a PDF to test can be found at http://itext.ugent.be/library/com/lowagie/examples/general/HelloWorldPdf.pdf
> Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PDFBOX-478) PDFToImage don't render text in iText generated PDF

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715819#action_12715819 ] 

Andreas Lehmkühler commented on PDFBOX-478:
-------------------------------------------

I've a look at the document and there is some text missing. Is the missing text just the one you added with iText?

> PDFToImage  don't render text in iText generated PDF 
> -----------------------------------------------------
>
>                 Key: PDFBOX-478
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-478
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>         Environment: Ubuntu 8.10 with resticted fonts extras, jdk 1.6.0.7, itext 2.1.4
>            Reporter: Sebastian Ortiz V
>             Fix For: 0.8.0-incubator
>
>         Attachments: report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d27.pdf, report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d271.jpg
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When try to PDFToImage a pdf with text added with the iText library, the result image don't contain the text.
> I debugged a little the pdfbox, and found that the text is extracted well in the class org/apache/pdfbox/pdmodel/font/PDType1Font.java the String is drawed in the graphics as should be ( i think so ) 
> If i write the BufferedImage in PDPage convertToImage() the image don't contains anything. i belive the issue is that the graphics objects where the PDType1Font1 draws the string is not the "same", or something related.
> a PDF to test can be found at http://itext.ugent.be/library/com/lowagie/examples/general/HelloWorldPdf.pdf
> Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PDFBOX-478) PDFToImage don't render text in iText generated PDF

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714904#action_12714904 ] 

Andreas Lehmkühler commented on PDFBOX-478:
-------------------------------------------

I've tried to display the pdf with org.apache.pdfbox-PDFReader and to cenvert it to a jpg with org.apache.pdfbox.PDFToImage and both works fine.

Perhaps the issue is located in your implemtation. Please have a look at org.apache.pdfbox.util.PDFImageWriter.WriteImage(..) as an example.

> PDFToImage  don't render text in iText generated PDF 
> -----------------------------------------------------
>
>                 Key: PDFBOX-478
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-478
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>         Environment: Ubuntu 8.10 with resticted fonts extras, jdk 1.6.0.7, itext 2.1.4
>            Reporter: Sebastian Ortiz V
>             Fix For: 0.8.0-incubator
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When try to PDFToImage a pdf with text added with the iText library, the result image don't contain the text.
> I debugged a little the pdfbox, and found that the text is extracted well in the class org/apache/pdfbox/pdmodel/font/PDType1Font.java the String is drawed in the graphics as should be ( i think so ) 
> If i write the BufferedImage in PDPage convertToImage() the image don't contains anything. i belive the issue is that the graphics objects where the PDType1Font1 draws the string is not the "same", or something related.
> a PDF to test can be found at http://itext.ugent.be/library/com/lowagie/examples/general/HelloWorldPdf.pdf
> Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PDFBOX-478) PDFToImage don't render text in iText generated PDF

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12716607#action_12716607 ] 

Andreas Lehmkühler commented on PDFBOX-478:
-------------------------------------------

I was just a thought. Perhaps you will find a working combination until the issue is fixed in pdfbox.

> PDFToImage  don't render text in iText generated PDF 
> -----------------------------------------------------
>
>                 Key: PDFBOX-478
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-478
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>         Environment: Ubuntu 8.10 with resticted fonts extras, jdk 1.6.0.7, itext 2.1.4
>            Reporter: Sebastian Ortiz V
>             Fix For: 0.8.0-incubator
>
>         Attachments: report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d27.pdf, report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d271.jpg
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When try to PDFToImage a pdf with text added with the iText library, the result image don't contain the text.
> I debugged a little the pdfbox, and found that the text is extracted well in the class org/apache/pdfbox/pdmodel/font/PDType1Font.java the String is drawed in the graphics as should be ( i think so ) 
> If i write the BufferedImage in PDPage convertToImage() the image don't contains anything. i belive the issue is that the graphics objects where the PDType1Font1 draws the string is not the "same", or something related.
> a PDF to test can be found at http://itext.ugent.be/library/com/lowagie/examples/general/HelloWorldPdf.pdf
> Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PDFBOX-478) PDFToImage don't render text in iText generated PDF

Posted by "Sebastian Ortiz V (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebastian Ortiz V updated PDFBOX-478:
-------------------------------------

    Attachment: report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d271.jpg
                report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d27.pdf

This a sample file to convert and the output generated by pdfbox.

The file was modified by using iText.

> PDFToImage  don't render text in iText generated PDF 
> -----------------------------------------------------
>
>                 Key: PDFBOX-478
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-478
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>         Environment: Ubuntu 8.10 with resticted fonts extras, jdk 1.6.0.7, itext 2.1.4
>            Reporter: Sebastian Ortiz V
>             Fix For: 0.8.0-incubator
>
>         Attachments: report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d27.pdf, report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d271.jpg
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When try to PDFToImage a pdf with text added with the iText library, the result image don't contain the text.
> I debugged a little the pdfbox, and found that the text is extracted well in the class org/apache/pdfbox/pdmodel/font/PDType1Font.java the String is drawed in the graphics as should be ( i think so ) 
> If i write the BufferedImage in PDPage convertToImage() the image don't contains anything. i belive the issue is that the graphics objects where the PDType1Font1 draws the string is not the "same", or something related.
> a PDF to test can be found at http://itext.ugent.be/library/com/lowagie/examples/general/HelloWorldPdf.pdf
> Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PDFBOX-478) PDFToImage don't render text in iText generated PDF

Posted by "Sebastian Ortiz V (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714940#action_12714940 ] 

Sebastian Ortiz V commented on PDFBOX-478:
------------------------------------------

Thanks for looking Andreas,

Can you be more specific about your actual configuration. I got the same problem under Windows/Linux

To test I use command line with the following command 

java -cp fontbox-0.8.0-incubating.jar:pdfbox-0.8.0-incubating.jar:log4j-1.2.15.jar org.apache.pdfbox.PDFToImage -imageType jpg HelloWorld.pdf 

And i got the same issue.

I have not implementation.


> PDFToImage  don't render text in iText generated PDF 
> -----------------------------------------------------
>
>                 Key: PDFBOX-478
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-478
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>         Environment: Ubuntu 8.10 with resticted fonts extras, jdk 1.6.0.7, itext 2.1.4
>            Reporter: Sebastian Ortiz V
>             Fix For: 0.8.0-incubator
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When try to PDFToImage a pdf with text added with the iText library, the result image don't contain the text.
> I debugged a little the pdfbox, and found that the text is extracted well in the class org/apache/pdfbox/pdmodel/font/PDType1Font.java the String is drawed in the graphics as should be ( i think so ) 
> If i write the BufferedImage in PDPage convertToImage() the image don't contains anything. i belive the issue is that the graphics objects where the PDType1Font1 draws the string is not the "same", or something related.
> a PDF to test can be found at http://itext.ugent.be/library/com/lowagie/examples/general/HelloWorldPdf.pdf
> Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (PDFBOX-478) PDFToImage don't render text in iText generated PDF

Posted by "Sebastian Ortiz V (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714940#action_12714940 ] 

Sebastian Ortiz V edited comment on PDFBOX-478 at 5/31/09 5:15 PM:
-------------------------------------------------------------------

Thanks for looking Andreas,

After update the pdfbox the Hello Word is working, but the file i really need to convert to image is not working i uploded it to the issue.

Please take a look, thanks again !

      was (Author: svasquez):
    Thanks for looking Andreas,

Edit: Working after download again the pdfbox.
  
> PDFToImage  don't render text in iText generated PDF 
> -----------------------------------------------------
>
>                 Key: PDFBOX-478
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-478
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>         Environment: Ubuntu 8.10 with resticted fonts extras, jdk 1.6.0.7, itext 2.1.4
>            Reporter: Sebastian Ortiz V
>             Fix For: 0.8.0-incubator
>
>         Attachments: report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d27.pdf, report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d271.jpg
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When try to PDFToImage a pdf with text added with the iText library, the result image don't contain the text.
> I debugged a little the pdfbox, and found that the text is extracted well in the class org/apache/pdfbox/pdmodel/font/PDType1Font.java the String is drawed in the graphics as should be ( i think so ) 
> If i write the BufferedImage in PDPage convertToImage() the image don't contains anything. i belive the issue is that the graphics objects where the PDType1Font1 draws the string is not the "same", or something related.
> a PDF to test can be found at http://itext.ugent.be/library/com/lowagie/examples/general/HelloWorldPdf.pdf
> Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PDFBOX-478) PDFToImage don't render text in iText generated PDF

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12716162#action_12716162 ] 

Andreas Lehmkühler commented on PDFBOX-478:
-------------------------------------------

I neved used iText, but are there any options to add the text otherwise? Did you define font, fontsize and fontcolor? I know, other pdf-renderer doesn't have any problems displaying your doc, but perhaps there is a workaround until we'll fix the issue in pdfbox.

> PDFToImage  don't render text in iText generated PDF 
> -----------------------------------------------------
>
>                 Key: PDFBOX-478
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-478
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>         Environment: Ubuntu 8.10 with resticted fonts extras, jdk 1.6.0.7, itext 2.1.4
>            Reporter: Sebastian Ortiz V
>             Fix For: 0.8.0-incubator
>
>         Attachments: report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d27.pdf, report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d271.jpg
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When try to PDFToImage a pdf with text added with the iText library, the result image don't contain the text.
> I debugged a little the pdfbox, and found that the text is extracted well in the class org/apache/pdfbox/pdmodel/font/PDType1Font.java the String is drawed in the graphics as should be ( i think so ) 
> If i write the BufferedImage in PDPage convertToImage() the image don't contains anything. i belive the issue is that the graphics objects where the PDType1Font1 draws the string is not the "same", or something related.
> a PDF to test can be found at http://itext.ugent.be/library/com/lowagie/examples/general/HelloWorldPdf.pdf
> Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PDFBOX-478) PDFToImage don't render text in iText generated PDF

Posted by "Sebastian Ortiz V (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715911#action_12715911 ] 

Sebastian Ortiz V commented on PDFBOX-478:
------------------------------------------

Yes, the text missing is all the text added with iText, and only this text.

The PDF renders well as image using PDFRenederer (https://pdf-renderer.dev.java.net/) but the resolution it render is too bad for my requirements.

The text is added on the Over Content in the PDF.

> PDFToImage  don't render text in iText generated PDF 
> -----------------------------------------------------
>
>                 Key: PDFBOX-478
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-478
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>         Environment: Ubuntu 8.10 with resticted fonts extras, jdk 1.6.0.7, itext 2.1.4
>            Reporter: Sebastian Ortiz V
>             Fix For: 0.8.0-incubator
>
>         Attachments: report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d27.pdf, report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d271.jpg
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When try to PDFToImage a pdf with text added with the iText library, the result image don't contain the text.
> I debugged a little the pdfbox, and found that the text is extracted well in the class org/apache/pdfbox/pdmodel/font/PDType1Font.java the String is drawed in the graphics as should be ( i think so ) 
> If i write the BufferedImage in PDPage convertToImage() the image don't contains anything. i belive the issue is that the graphics objects where the PDType1Font1 draws the string is not the "same", or something related.
> a PDF to test can be found at http://itext.ugent.be/library/com/lowagie/examples/general/HelloWorldPdf.pdf
> Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PDFBOX-478) PDFToImage don't render text in iText generated PDF

Posted by "Sebastian Ortiz V (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12716322#action_12716322 ] 

Sebastian Ortiz V commented on PDFBOX-478:
------------------------------------------

Yes, Andreas with iText y can work with different types of fonts, sizes and color.

Would you like to recommend me if use a TrueTypeFont or and Type 1  font ?



> PDFToImage  don't render text in iText generated PDF 
> -----------------------------------------------------
>
>                 Key: PDFBOX-478
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-478
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>         Environment: Ubuntu 8.10 with resticted fonts extras, jdk 1.6.0.7, itext 2.1.4
>            Reporter: Sebastian Ortiz V
>             Fix For: 0.8.0-incubator
>
>         Attachments: report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d27.pdf, report_anexo3_664adeed-4d27-4d14-932b-2ac04afe4d271.jpg
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When try to PDFToImage a pdf with text added with the iText library, the result image don't contain the text.
> I debugged a little the pdfbox, and found that the text is extracted well in the class org/apache/pdfbox/pdmodel/font/PDType1Font.java the String is drawed in the graphics as should be ( i think so ) 
> If i write the BufferedImage in PDPage convertToImage() the image don't contains anything. i belive the issue is that the graphics objects where the PDType1Font1 draws the string is not the "same", or something related.
> a PDF to test can be found at http://itext.ugent.be/library/com/lowagie/examples/general/HelloWorldPdf.pdf
> Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.