Forum Replies Created

Viewing 15 posts - 2,551 through 2,565 (of 4,234 total)
  • Author
    Posts
  • in reply to: General questions / FAQ
    #26893

    Hi All,
    If there is a ‘&’ in the content then the character next to the ‘&’ is missing in the PDF after converting to PDF using pd4ml.

    Please help me to resolve this issue.

    Thanks,
    Ajit

    in reply to: Automated testing – Random values
    #29445

    Would you have an idea when this would be released? 1 month, 6 months, a year?

    in reply to: Automated testing – Random values
    #29446

    ~1 month

    But definitely this year.

    in reply to: Problem with ‘&’ character
    #29448

    The issue is not reproducible with the actual versions of PD4ML.
    Which version do you use?

    in reply to: Automated testing – Random values
    #29447

    Awesome thanks.

    in reply to: Images with # in URL Don’t Render
    #29400

    v385fx3 solves the issue.

    in reply to: Images with # in URL Don’t Render
    #29401

    Thanks, the new version works great! I appreciate you addressing this.

    in reply to: HTML/CSS rendering issues
    #26894

    Hi Support,

    we are using pd4ml to generate pdf from html . but we are facing performance issue
    at render method .. its taking 7 mins for 5MB file .below is my code please help us to overcome this issue .

    =============================
    java.io.FileOutputStream fos = new java.io.FileOutputStream(fileName);
    PD4ML pd4ml = new PD4ML();

    PD4PageMark header = new PD4PageMark();

    header.setAreaHeight(-1);

    header.setHtmlTemplate(pdfHeader);

    PD4PageMark footer = new PD4PageMark();

    footer.setAreaHeight(-1);

    footer.setHtmlTemplate(footer);
    pd4ml.setPageSize(PD4ML.A4);

    pd4ml.interpolateImages(true);
    pd4ml.overrideDocumentEncoding(“UTF-8”);
    pd4ml.generatePdfa(true);
    pd4ml.generatePdfForms(true, “Courier New”);
    pd4ml.enableImgSplit(false);
    pd4ml.setPageInsets(new Insets(10,40,10,40));
    pd4ml.setHtmlWidth(1080);
    pd4ml.adjustHtmlWidth();
    pd4ml.useTTF( “java:Fonts”, true );//./WebContent/WEB-INF/lib/fonts
    pd4ml.setDefaultTTFs(“Segoe UI”, “Arial”, “Courier New”);

    pd4ml.generateOutlines(true);
    pd4ml.enableImgSplit( false );

    pd4ml.setPageHeader( header );
    pd4ml.setPageFooter(footer);

    pd4ml.render(new StringReader(pdfString),fos);

    ==================

    Thanks & Regards,
    Vinay Choudhary

    in reply to: pdf generation performance issue
    #29449

    A conversion duration primarily depends on HTML/CSS file size and its structure. So an HTML sample would help to analyze the issue in details.

    Typical reasons of such performance issues:

    – Huge CSS stylesheet: as we seen a couple of times, some “web optimised” HTML documents may include 2-3 Mb CSS style, tuned to suppress known banner exchange engines. The style makes no sense for HTML document layout, but makes CSS parser/runtime to spend quite a lot of resources to maintain the styles and it significantly slows down style resolving for a particular HTML element. Unfortunately CSS parser we use is not optimised to deal with extra big stylesheets.

    – The entire document layout is built as a single table with tens or hundred thousands of cells. If the table is nested to another table – rendering takes 3 times longer; 2 levels of nesting – 9 times longer etc. For big documents we recommend to split a huge table to a sequence of smaller ones and avoid a table nesting.

    If you are interested, a technical background of that is following: each cell width is calculated 3 times for MIN, MAX and optimal values. So every nesting level multiplies the “layouting” approaches to 3. If, lets say a content of a cell of a particular table row does not fit a column width calculated before, it needs to start table layouting again, taking into account a new condition.

    in reply to: pdf generation performance issue
    #29450

    Hi Support,

    i have attached the html file which we are using to generate pdf . please have a look and guide me to solve the problem .

    Thanks,
    Vinay

    in reply to: pdf generation performance issue
    #29451

    I checked the document sources.

    Well, as I suspected the document layout is built as a single table. The table cells also include multi-nested tables (up to 4 nesting levels).

    It should help a lot if by the HTML document generation (hopefully you have a control over the process) you can omit the “main table” – just output its nested content.

    in reply to: Troubleshooting
    #26895

    I am trying to make PDF&RTF files from html page.

    in example there is a string to set page orientation:
    pd4ml.setPageSize( landscapeValue ? pd4ml.changePageOrientation( format ): format );

    it work perfect with PDF, but have no effect with RTF format.
    What can be wrong?

    P.S. I am using PD4ML 385 Pro

    in reply to: changePageOrientation in RTF
    #29452

    For the time being, PD4ML does not support the feature by RTF output.

    Also I am not sure if RTF file format implements such a feature. Do you have an RTF sample (probably created with MS Word or OpenOffice) to confirm it is possible?

    in reply to: changePageOrientation in RTF
    #29453

    Thank you for your fast answer

    Attached file is .RTF, but it have landscape orientation in Word 2007 and OpenOffice 4.0.1 at my computer

    in reply to: changePageOrientation in RTF
    #29454

    I guess I misunderstood you first time. PD4ML does not support a dynamic format change: for example, the first page is portrait, the second is landscape.

    To avoid possible code errors, try to define format explicitly, without conditions:

    Portrait:
    pd4ml.setPageSize( PD4Constants.A4 );

    Landscape:
    pd4ml.setPageSize( pd4ml.changePageOrientation( PD4Constants.A4 ) );

Viewing 15 posts - 2,551 through 2,565 (of 4,234 total)