You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Joaquin Santana (Jira)" <ji...@apache.org> on 2020/06/16 16:28:00 UTC

[jira] [Updated] (PDFBOX-4890) StackOverflow Creating Cache

     [ https://issues.apache.org/jira/browse/PDFBOX-4890?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joaquin Santana updated PDFBOX-4890:
------------------------------------
    Description: 
Hello, when I'm trying to print a pdf it's giving me a problem creating the font cache, the same pdf is printable on Windows from IDE but doesn't work on ubuntu inside tomcat 

 
{code:java}
try {
    pdf = PDDocument.load(inputStream);
    pdf.getDocumentInformation().setTitle(filename);
    reportServiceBL.printPageablePdf(pdf);
} catch (Exception e) {
    LOGGER.error("An unexpected error occurred while dispatching document", e);
    return wrapResponseKO(null, "There was an error generating document");

}
{code}
 

!image-2020-06-16-18-19-55-465.png!

is there anyway to find where the issue is?

  was:
Hello, when I'm trying to print a pdf it's giving me a problem creating the font cache, the same pdf is printable on Windows from IDE but doesn't work on ubuntu inside tomcat 

 
{code:java}
try {
    pdf = PDDocument.load(inputStream);
    pdf.getDocumentInformation().setTitle(filename);
    reportServiceBL.printPageablePdf(pdf);
} catch (Exception e) {
    LOGGER.error("An unexpected error occurred while dispatching document", e);
    return wrapResponseKO(null, "There was an error generating document");

}
{code}
 

!image-2020-06-16-18-19-55-465.png!


> StackOverflow Creating Cache
> ----------------------------
>
>                 Key: PDFBOX-4890
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4890
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.20
>         Environment:  5.3.0-53-generic #47~18.04.1-Ubuntu SMP Thu May 7 13:10:50 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
> 2 core
> 6 GB Ram
>            Reporter: Joaquin Santana
>            Priority: Major
>         Attachments: image-2020-06-16-18-19-35-582.png, image-2020-06-16-18-19-55-465.png
>
>
> Hello, when I'm trying to print a pdf it's giving me a problem creating the font cache, the same pdf is printable on Windows from IDE but doesn't work on ubuntu inside tomcat 
>  
> {code:java}
> try {
>     pdf = PDDocument.load(inputStream);
>     pdf.getDocumentInformation().setTitle(filename);
>     reportServiceBL.printPageablePdf(pdf);
> } catch (Exception e) {
>     LOGGER.error("An unexpected error occurred while dispatching document", e);
>     return wrapResponseKO(null, "There was an error generating document");
> }
> {code}
>  
> !image-2020-06-16-18-19-55-465.png!
> is there anyway to find where the issue is?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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