Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26715

    Hi all

    I have developed a code to convert html files to pdf using pd4ml api. Its working fine in windows environment. But when I deployed the war in linux it got stucked in render method and after that there is no response. Please anybody help me in this. Sharing my code snippet.

    PD4ML pd4ml = new PD4ML();
    try {
    pd4ml.setPageSize( landscapeValue ? pd4ml.changePageOrientation( format ): format );
    } catch (Exception e)
    {
    e.printStackTrace();
    }
    if ( unitsValue.equals(“mm”) ) {
    pd4ml.setPageInsetsMM( new Insets(topValue, leftValue,bottomValue, rightValue) );
    } else {
    pd4ml.setPageInsets( new Insets(topValue, leftValue,bottomValue, rightValue) );
    }
    pd4ml.setHtmlWidth( userSpaceWidth );
    pd4ml.render(new URL(urlstring), fos);
    }catch (Exception e) {
    e.printStackTrace();
    }

    Thanks in advance.

    #28982

    Hi ,

    I am facing the same issue , can you please tell me hwo did you resolve the issue?

    As its working fine for me in windows bt on linux gives the error.

    Regards
    Jordan

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘Troubleshooting’ is closed to new topics and replies.