Forum Replies Created
-
AuthorPosts
-
in reply to: PD4ProgressListener fails to work September 8, 2012 at 23:12#29103
I tested the feature with the most recent version – it works fine. Also I analyzed the relevant source code – there is no obvious reason to fail.
I would recommend to start with a simpler monitor: temporarily remove if(DEBUG) conditions and replace Log.theLog.log with System.out.println
in reply to: Header problem using mixed Portrait and Landscape September 7, 2012 at 11:26#29106It is a bug in PD4ML. We’ll see if it can be fixed with the forthcoming maintenance release.
in reply to: Page number reset relation with $[total] September 7, 2012 at 11:17#29108There is no way to impact the total page number value.
For your particular case it would make sense to split the document into two parts, convert them separately and merge.
in reply to: css @media parsing September 7, 2012 at 10:46#28343Here you faced with a CSS feature, not supported by the open source CSS Parser Project, PD4ML relies on.
From time to time we patch it and implement new features, but as a rule it is not that trivial. If you have JavaCC skills, you may fix the issue by yourself – the most recent patched sources are available in PD4ML download area.
in reply to: Convert URL to image in java applet September 6, 2012 at 12:16#29110The following info should help:
https://pd4ml.com/cookbook/html_to_image_conversion.htmin reply to: PD4ML Library Pro License September 4, 2012 at 10:00#29109I’ve just re-sent you the license email.
in reply to: Issue while generating PDF August 24, 2012 at 11:51in reply to: .net html string August 24, 2012 at 11:41#29100You’d need to build a MemoryStream object from the string, like the following:
private static byte[] GeneratePdf(string html) { PD4ML pd4ml = new PD4ML(); using (var output = new MemoryStream()) { var encodedBytes = Encoding.UTF8.GetBytes(html); using (var input = new MemoryStream(encodedBytes)) { pd4ml.render(input, output); return output.ToArray(); } } }If the HTML refers to any resources (images, CSS) by relative URLs, use render() API method with base URL parameter.
in reply to: Does pd4ml support for Google AppEngine(GAE) with java.? August 22, 2012 at 15:59#29096No. PD4ML relies on AWT classes, which are not offered by GAE.
in reply to: Google App Engine August 22, 2012 at 15:58#28427PD4ML relies on AWT, which is not offered by GAE. So the answer is ‘no’
in reply to: ex Unit support in CSS August 22, 2012 at 15:56#29095PD4ML does not support ‘ex’ measurement units for the time being.
in reply to: margin-left:auto margin-right:auto not working August 2, 2012 at 18:48#29081What about to enclose the table to
<center>and</center>tags?in reply to: margin-left:auto margin-right:auto not working August 2, 2012 at 18:41#29079Do you need to center a TABLE or a DIV?
in reply to: margin-left:auto margin-right:auto not working August 2, 2012 at 17:47#29077The CSS properties are not supported by PD4ML.
For tables there is a non-standard workaround:
@media pdf { table.CenterDiv { align:center; } }in reply to: Nest of table tag August 2, 2012 at 16:47#29085I guess under “last cells are not appearing” you mean the table is cut right side.
If so, you’d only need to increase htmlWidth conversion parameter. I’ve attached PDF result with htmlWidth=1700
-
AuthorPosts
