Forum Replies Created
-
AuthorPosts
-
in reply to: pdf renders garbled png image December 21, 2010 at 16:07#28320
An HTML document sample and its PDF output, sent to support pd4ml com would help us to analyze the problem reasons.
in reply to: Generate RTF with Wrapper December 15, 2010 at 20:30#28329To be honest we’ve forgotten to add the feature to the wrapper.
The wrapper source code is available for download, so you may to add the feature by yourself. Or wait till the next (beta) release of PD4ML – we’ll add the missing code. Please do not forget: RTF output is a feature of PD4ML Pro.
in reply to: Integrating the PD4ML Converter into Notes December 15, 2010 at 20:26#28332Most probably the red content is base64-encoded versions of the mail fields.
We constantly improve our DXL->HTML XSL stylesheet and some issues like yours are already resolved. Could you please send a DXL sample to support pd4ml com – we’ll check if it is convertible with the current state of XSL stylesheet and PD4ML library.
in reply to: RTF Support in Tag Library December 15, 2010 at 19:55#28333Hmm… The only explanation is that you use PD4ML Std. RTF output is a feature of PD4ML Pro.
in reply to: IllegalStateException December 15, 2010 at 19:38#28335My first suspect is that the PDF bytes are sent to the browser not in bin, but in text mode. The content has grown because of newline conversion from “n” to “nr”. But I cannot be sure about that before I took a look to your code.
Could you please publish a JSP sample here or send it to support pd4ml com?
in reply to: Is the evaluation copy for intranet only? December 8, 2010 at 16:06#28330Of course PD4ML is able to work in local environment as well as in the Internet.
Obviously there are some network-specific issues on your side. I would recommend to try to dump HTML content before it is passed to PD4ML (to make sure the source HTML is not blank).
Also pd4ml.enableDebugOutput() forces PD4ML to dump external resources URLs it tries to load.
in reply to: Passing authentication headers November 24, 2010 at 16:43#28316Well, basic authentication is supported by PD4ML, so you may always use
Map m = new HashMap(); m.put(PD4Constants.PD4ML_BASIC_AUTHENTICATION, "login:password"); pd4ml.setDynamicParams(m);
and it is quite safe to use, as the base64-encoded password does not leave the server side in the scenario.But the trick with iv-user HTTP header is still not clear to me. As I can imagine, MS Internet Explorer never sets such proprietary HTTP header. How does it request for images after HTML is loaded?
in reply to: Passing authentication headers November 24, 2010 at 14:40#28314In regular non-PDF scenario, the image requests are initiated by a web browser after the main HTML page is loaded. So I do not think it uses any proprietary HTTP headers to identify a user/session. I would expect a very standard session ID propagation – via cookie (in HTTP header) or via URL string.
Try to dump HTTP headers (there are browser plugins or other tools for that) and determine the way it identifies a session.
in reply to: Debug – Blank Page Rendered from JSP? November 24, 2010 at 14:31#28309Please save a blank PDF and send it to support pd4ml com. First we are going to check if the problem is caused by a wrongly applied character set conversion to a binary PDF data.
in reply to: Passing authentication headers November 24, 2010 at 14:12#28312PD4ML.setCookie() and PD4ML.useHttpRequest() is the right direction to solve the issue.
Does your application use JSESSIONID cookie to identify a session? If so, what do you pass to PD4ML.setCookie() as a parameter?
in reply to: A few questions about PD4ML November 24, 2010 at 13:45#28318> 1. Could I handle events whenever PD4ML creates a new page?
No.
> – Could I create a margin-left at each uneven page and a margin-right at each even page ?
We call the feature “mirrored margins”, it is in our TODO list, and it is going to be available with forthcoming versions.
> – Could I avoid orphan ?
you may achieve that with a conditional page breaks
<pd4ml:page.break ifSpaceBelowLessThan="150">
placed before paragraphs, or by “page-break-inside: avoid” CSS style applied to paragraph portions.> 2. When I create a table of contents, how can I refered the title to his pagenumber ?
<pd4ml:toc>generates a table of contents from H1-h6 hierarchy with correct references and page numbers.Page numbering info is known on the very late phases of PDF output, so there is no reasonable way to implement, for example, placeholders for page numbers in main HTML body.
in reply to: pdf page comes at empty November 15, 2010 at 05:17#28285A sample of source HTML and its resulting PDF could be very useful to analyze the problem reason. Please post them here or send to support pd4ml com
in reply to: HTML tags from JSF written to pdf file November 15, 2010 at 04:05#28214Do you want to render an HTML document (generated by the JSF page) as PDF or just want to print the generated HTML text (HTML source code listing) to PDF?
in reply to: font rendering issue November 15, 2010 at 03:54#281171. PD4ML supports TTF and OTF fonts. OTFs from Win32 distribution are ok, but there are “third-party” OTFs for some reasons not supported by Java (in the case they are skipped in pd4fonts.properties). Usually it helps to open such OTF file in FontForge application and save as TTF. FontForge is an open source tool for UNIX/Linux platform, which is also available for Win32 as “fontforge-mingw”
2.
<font face="Myriad Pro Light">refers to Myriad Pro Light in pd4fonts.properties.<font face="Myriad Pro Light">refers to Myriad Pro Light Italic,<font face="Myriad Pro Light">refers to Myriad Pro Light Bold. Also<font face="Myriad Pro Light Bold">refers to Myriad Pro Light Bold even if there is no tags around. Probably it can explain some oddities with font styles you faced with.in reply to: Selecting multiple classnames doesnt work November 15, 2010 at 03:32#27868For the particular HTML sample a workaround would be to change the style to
body .x div.a { color: green; }PD4ML does not support selectors combine multiple classes, like “div.a.b“.
We’ll add support for it to the forthcoming release.
-
AuthorPosts
