Forum Replies Created
-
AuthorPosts
-
in reply to: HTML/CSS rendering issues February 22, 2012 at 11:39#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. February 22, 2012 at 13:04#28890In 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? February 22, 2012 at 13:07#28887The 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 February 22, 2012 at 15:46#28795Can 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 February 22, 2012 at 16:17#28812Has there been a new release with this feature added?
in reply to: Css style inheritance February 22, 2012 at 16:29#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 February 23, 2012 at 13:42#28796We 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 February 23, 2012 at 15:36#27381Will this css property ever be fixed to work on other block elements? like div or p tags?
in reply to: HTML/CSS rendering issues February 24, 2012 at 09:58#26690Hi!
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 February 24, 2012 at 12:01#28901This 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 February 24, 2012 at 17:52#28896Hello,
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 February 24, 2012 at 18:59#28897I 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 built19890 progress generating PDF… 1
23499 progress done.Thanks,
Vineetin reply to: General questions / FAQ February 24, 2012 at 19:54#26691I’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 1It 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 February 24, 2012 at 21:08#28902Obviously 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 February 24, 2012 at 21:09#28814Just uploaded v380fx3 to the download area. Please give a try.
-
AuthorPosts