Forum Replies Created

Viewing 15 posts - 1,741 through 1,755 (of 4,234 total)
  • Author
    Posts
  • in reply to: HTML/CSS rendering issues
    #26688

    When one line (in a paragraph) contains subscript text, the next line in the paragraph is rendered farther away (line height wise) than if there was no subscript. (Similar is probably true for superscript.)

    In HTML this can be prevented by doing for example this:
    p { line-height: 1.5em; }<br /> sub, sup { line-height: 0; }
    Is there a way to achieve this in generated PDF too?

    in reply to: PDF with large number of Images.
    #28890

    In theory, PD4ML should embed JPEG images to PDF “as is”, without a rendering in RAM. So the issue needs some investigations.

    But first, I would try to unload the images from RAM to the temp dir:
    [language=java:3p5iyqg7]Map m = new HashMap();
    m.put(PD4Constants.PD4ML_CACHE_IMAGES_IN_TMP_DIR, “true”);
    pd4ml.setDynamicParams(m);[/language:3p5iyqg7]

    Does it change anything in your case?

    in reply to: How to optimize the size of the generated PDF?
    #28887

    The recent changes of the absolute positioning logic still cannot pass QA. We’ve been working on it. I’ll post here a brief notice, when the version is available.

    in reply to: display current date every time the PDF is opened
    #28795

    Can we expect new beta release by this week? It would be of great help if you can release by this week.
    Thanks,

    in reply to: Css style inheritance
    #28812

    Has there been a new release with this feature added?

    in reply to: Css style inheritance
    #28813

    @mackelito wrote:

    Has there been a new release with this feature added?

    A look at the download page has the answer. Still 380fx2, tagged with a date before this discussion.
    [Not that I wouldn’t have liked the answer to be different though :)]

    in reply to: display current date every time the PDF is opened
    #28796

    We found that the font of the form field value is arial where as the font of the remaining PDF is TimesNewRoman. I tried to change the font by using the font tags before the from field as shown below but couldnt able to do.

    Please let me know how can i change the font to TimesNewRoman.

    Thanks,

    in reply to: page-break-inside:avoid; on divs
    #27381

    Will this css property ever be fixed to work on other block elements? like div or p tags?

    in reply to: HTML/CSS rendering issues
    #26690

    Hi!

    I have the stranges bugs going on..
    – If I dont set a font-size on a specific element the custom font won´t get applied.
    – If I set the font-size to 16px the custom font is not applied (15 works just fine).
    – I can´t use % to set font-size (if I do it will ignore the custom font)
    – “page-break-inside:aviod” dont work on div or p tags (only tables??)

    So these are the bugs that I struggle with at the moment and any help is much appreciated! 🙂

    /Markus

    in reply to: Custom font, font-size
    #28901

    This whole font-size bug is really bugging me!..
    some times it seems to work and some times not???…

    in reply to: pd4ml.render is taking too long time
    #28896

    Hello,

    The css on our webpages are included as the css files. We are not using inline styling. We are generating the pdf file from pd4ml on the server where our web application exist (web pages + css + images etc). Therefore, its a less probability of any networking delays.

    If we generate our webpages containing images but without CSS the performance is not that bad but with CSS its too slow. Like 139 pdf pages (with css styling, fonts and images ) are generated in approx. 80 secs. We have embed the fonts files in the jar file of our application.

    Can you please answer the following questions:
    The CSS that we are using is quite heavy (approx 4000 lines, 137KB size). Could heavy css size be the reason for slow performance?

    If yes, does the css lines which are not used on the page also adds to the pdf generation time or time is only dependent on the how much css styling is applied on the page. In other words if only a section of css is getting applied on my pdf pages, does rendering of that particular section of css account for the generation time or whole css is parsed and rendered by pd4ml, does not matter if all the css is applied on html or not.

    Is there any CSS or HTML tags/attributes/property which takes too much of time to render by pd4ml and we should avoid it to enhance the performance?

    Any common tips that can imporve the performance of the overall pdf generation time.

    Thanks

    in reply to: pd4ml.render is taking too long time
    #28897

    I would also like to provide you the dump of progress monitor for our few pages:

    Scenerio1: Generate 10 big HTML pages with no images in it (only plain text) and minimum styling is applied (excluded heavy css file), it generates 91 pdf pages out of it and following is the important information from progress monitor dump:


    204 progress html parsed
    5532 progress document tree structure built
    5579 progress layouting…
    8172 progress generating PDF… 1
    53684 progress done.

    Scenerio2: Same as scenerio1 with heavy css file
    203 progress html parsed
    30046 progress document tree structure built
    30093 progress layouting…
    32155 progress generating PDF… 1
    74826 progress done.

    Scenerio3: Generating 10 HTML pages containing text and images with minimum styling (excluding heavy css that I mentioned in previous post), it generates around 30 pages.


    94 progress html parsed
    3125 progress document tree structure built
    3141 progress layouting…
    3641 progress generating PDF… 1
    6594 progress done.

    Scenerio4: Same as scenerio3 with heavy css

    109 progress html parsed
    19140 progress document tree structure built

    19890 progress generating PDF… 1
    23499 progress done.

    Thanks,
    Vineet

    in reply to: General questions / FAQ
    #26691

    I’m trying to generate a PDF with a certain footer on certain pages, and I’m wondering if there is a way to do this (page numbers are for example):

    Pages 1-3 : Text footer, no page numbers
    Pages 4-20: Text footer WITH page numbers. starting at 1
    Pages 21-23: Text footer with page numbering restarted at 1

    It is more important to get the first 2, the third item is simply a nice-to-have.

    Do you have any suggestions or methods to make this work?

    I am using PD4ML 371b9 Volume.

    I think I’m essentially looking for a Java-based option of the ‘scope’ attribute of the JSP tag…

    in reply to: Custom font, font-size
    #28902

    Obviously we need more input from your side: HTML sample, Java code snippet, TTF file (if it is not a commonly used one) etc.

    But first try to download the just-released v380fx3 – hopefully it solves some of the issues you reported.

    in reply to: Css style inheritance
    #28814

    Just uploaded v380fx3 to the download area. Please give a try.

Viewing 15 posts - 1,741 through 1,755 (of 4,234 total)