Forum Replies Created
-
AuthorPosts
-
in reply to: Using CustomFileResourceProvider May 11, 2010 at 14:08#27912
It is a copy-paste issue in the sample code.
The line
bis = new BufferedInputStream(is);
may be deleted.Your modifications seems to be ok
in reply to: how to force pdf download using jsp tag lib? May 11, 2010 at 13:24#28015My mistake. The correct attribute name is fileName
in reply to: how to force pdf download using jsp tag lib? May 10, 2010 at 13:32#28013If you use PD4ML taglib, you can force “Content-disposition: attachment” header output by inline=”false” attribute of
<pd4ml:transform>tag. With name attribute you may define a default name.in reply to: PD4ML attempts to download ‘background-image: none/inherit’ May 7, 2010 at 16:01#28004on Monday, May 10
in reply to: page.break ifSpaceBelowLessThan not working May 6, 2010 at 19:19#28011Hmm… With v360 it should work.
> Well the actual problem is that I’m am using this on a dynamic jsp form.
> I will not know how long or short the form will be. So I wanted to basically
> say to page brake when there is only 100 px left on the current pdf page.That means the form is followed by a content portion, which you would not like to “pagebreak”. I would still recommend to use CSS approach and to enclose such sensitive content parts into
<div style="page-break-inside: avoid">and</div>.If for some reason it is not acceptable, please add enable=”false” attribute to
<pd4ml:transform>tag – it should return your JSP output as HTML – and send the HTML to support pd4ml com or attach to a post in the topic.in reply to: page.break ifSpaceBelowLessThan not working May 6, 2010 at 18:32#28009Which PD4ML version do you use? You may see that in document properties of a generated PDF file.
in reply to: page.break ifSpaceBelowLessThan not working May 6, 2010 at 18:06#28007Actually in your sample you specified 1000px instead of 100px, which is quite a lot for a typical HTML document.
in reply to: PD4ML attempts to download ‘background-image: none/inherit’ May 6, 2010 at 17:34#28002A bugfix will be available with v360fx1 release.
in reply to: page.break ifSpaceBelowLessThan not working May 6, 2010 at 17:05#28005In earlier versions of PD4ML any tag between
</tr>and<tr>(not belongs to a particular table row) was ignored. But with PD4ML actual versions it should work.By the way: why do not you use TR { page-break-inside: avoid } CSS style to achieve identical result?
in reply to: Using CustomFileResourceProvider May 4, 2010 at 11:22#27910Glad you got it working!
Actually PD4ML does support HTTPS, but not in all environments. For example, Weblogic and WebSphere have SSL implementations not derived from the standard Java SSL classes, so they are not compatible with PD4ML.
in reply to: image path error April 28, 2010 at 16:58#28000The only workaround I found:
http://latex.codecogs.com/gif.latex?300dpi%2520tiny%2520sum
however it is not compatible with browsers 🙁Obviously it is a problem of URL pre-processing by PD4ML. We’ll check what could be done.
Does the image generator have alternative “spaceless” syntax to achieve the same result?
in reply to: image path error April 28, 2010 at 15:04#27999It seems the easiest solution would be to suppress the spaces:
in reply to: Font rendering quality April 28, 2010 at 12:24#27997We spend quite a lot of time to find a workaround – unfortunately no success.
I could only recommend you to replace such translucent PNGs with transparent PNGs (have bit transparency mask instead of alpha channels), or GIFs or JPEGs.
If you have tons of images to convert, you may add on-a-fly image converter as a custom resource loader:
pd4ml-html-css-pdf-tips-tricks-f7/a-definition-of-custom-resource-loaders-t40.html
utilizing, for example, JAI library.in reply to: Font rendering quality April 28, 2010 at 11:14#27995Does your PDF contain any images?
As we learned Adobe Acroread uses different page rendering algorithms depending if a page has images with soft masks (alpha channels) or does not. For some strange reasons if a page has such image, the font glyphs on the page appear with rough edges (it does not impact print output – it is only a problem of screen view).
in reply to: Incorrect layout in generated PDF April 26, 2010 at 16:33#27993The width of the nesting DIV is not sufficient for 2 columns.
I changed the width from 612 to 624 and it produced a 2 columns layout.#clientBrowserMainEntity { float:left; width:624px; margin: 0 0 10px 5px; } -
AuthorPosts
