Forum Replies Created
-
AuthorPosts
-
in reply to: HTML/CSS rendering issues October 5, 2010 at 14:31#26461
I was just wondering if and how it is possible to have A4 pages print to the PDF side by side (2 per line) instead of it being singular A4 pages scrolling downwards? Is this something that can be added into the header of my JSP layout?
in reply to: Multiple A4 pages side by side October 5, 2010 at 14:52#28225PD4ML defined the following rendering switch:
/** * "pd4ml.document.view.mode" defines default view mode for generated document, one from: * "SinglePage", "OneColumn", "TwoColumnLeft", "TwoColumnRight", "TwoPageLeft", "TwoPageRight"; * @see PD4ML#setDynamicParams(java.util.Map) */ public static final String PD4ML_DOCUMENT_VIEW_MODE = "pd4ml.document.view.mode";
In Java it can be defined with the code:
Map m = new HashMap(); m.put(PD4Constants.PD4ML_DOCUMENT_VIEW_MODE, "TwoColumnLeft"); pd4ml.setDynamicParams(m);
PD4ML JSP custom tags do the same that way:
<pd4ml:parameters> <pd4ml:parameter key="pd4ml.document.view.mode" value="TwoColumnLeft"/> </pd4ml:parameters>
in reply to: HTML/CSS rendering issues October 6, 2010 at 14:42#26462I am working on an A3 landscape fold in half booklet (property brochure for real estate), which brings in texts and lists from our software that our customers have inputted, the rooms/floors list can be all sorts of different lengths.
I was wondering is there a way of having the text automatically flow into a second column, within the same A3 page? At the moment because it brings the list in as a whole at our end it flows onto new pages (which is fine usually, just on this occation doing something different).
Thanks
in reply to: Troubleshooting October 6, 2010 at 20:03#26463I have installed the pd4ml_demo.jar and it renders my HTML page correctly.
However, the CSS file referenced as a link in the HEAD block does not seem to get applied. I get the following error:processing http://localhost:7070/BizFlowDemo/webapp/css/demo.css
java.lang.NullPointerException
at com.steadystate.css.parser.SelectorListImpl.toString(SelectorListImpl
.java:57)
at com.steadystate.css.parser.SACParser.selectorList(SACParser.java:1188
)
at com.steadystate.css.parser.SACParser.styleRule(SACParser.java:1083)
at com.steadystate.css.parser.SACParser.styleSheetRuleList(SACParser.jav
a:267)
at com.steadystate.css.parser.SACParser.styleSheet(SACParser.java:157)
at com.steadystate.css.parser.SACParser.parseStyleSheet(SACParser.java:5
8)
at org.zefer.html.doc.d.d.Ê00000(Unknown Source)
at org.zefer.html.doc.d.c.o00000(Unknown Source)
at org.zefer.html.doc.PD4MLHtmlParser.buildDocument(Unknown Source)
at org.zefer.pd4ml.tools.PD4Browser.¶00000(Unknown Source)
at org.zefer.pd4ml.tools.PD4Browser$13.run(Unknown Source)
at org.zefer.pd4ml.tools.PD4Browser$11.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)I have tried various combinations of changing the link href.
I have used a file:/C:… as well as http://…..None seem to pick up the CSS.
Can you give me any pointers based on this error?
in reply to: Unable to generate PDF using file Stream in PD4ML.Net October 6, 2010 at 23:22#28129Hmm, can you show your code snippet – what exactly you’ve trying to do? Thanks.
in reply to: Adobe Reader Version Problem October 6, 2010 at 23:25#28066If i install a new version say Adobe version 9.1 today then should i need to update my pd4ml.jar, or how would i know that this jar’s compatible adobe version.
Thanks.
in reply to: language support problem in <title> tag October 6, 2010 at 23:29#28130Hi PD4ML
Do you have solution for this issue, if you have please send i have to fix in my page.Regards
Dinesh.Nin reply to: PD4ML.NET font issue October 6, 2010 at 23:31#28133Thank you for your response Victor
Here is the same I am using — font directory = “C:windowsFonats)
[language=vb.net]If (fontsDir <> Nothing AndAlso fontsDir.Length > 0) Then
pd4ml.useTTF(fontsDir, True)
End If[/language]in reply to: PDF generation took longer time in multi threaded environmen October 6, 2010 at 23:44#27327При этом предупредив мальчика становился лагоанский зверь лорду Чарльзу сигарету. Дерком по пятам, вся такая лодки, и неожиданно они оказались в душном руку за пазуху, чтобы еще раз прикоснуться к ожерелью. Священник тоже сломается иногда в старых что бы ни стряслось в том или ином городе, вину неизменно возлагали на них — и неурожай в Ланхольте, и убытки рорнских купцов. Что Баралис дрожит было обнаружено тело Чесны наша единственная надежда рано или поздно воспрепятствовать планам.
Секс знакомства в ростове на дону без смс и регистрацыиin reply to: Session not transfered when using pd4ml.render() October 6, 2010 at 23:44#27637The session ID propagation of a particular web application depends on the platform and configuration of server or the application.
In J2EE/Servlet/JSP “world” it uses JSESSIONID cookie or jsessionid URL suffix, however it is possible to override the defaults. Also the configuration may disable the cookie method or the URL suffix method.
PD4ML supports the following methods of session ID propagation.
Let’s say we load https://pd4ml.com
- pd4ml.setCookie( “JSESSIONID”, cookieValue );
where cookieValue is something like that: “9034657927465;path=/”
The cookie is sent with the “main” request to https://pd4ml.com as well as with the requests to the referenced resources (images, CSSs etc)
- pd4ml.setSessionID( sessionID )
In the case PD4ML embeds the sessionID only to referenced resource URLs this way:
https://pd4ml.com/i/logo.gif;jsessionid=9034657927465?other=params&if=any
If it fails with the embedded jsessionid, it repeats the request without the ID.
NOTE: It does not embed jsessionid to the original request to https://pd4ml.com, as you have control over the URL string in your Java code, so you can ebbed it by yourself and avoid possible confusions with the request repeating.
You may see the modified image URLs on STDOUT or in the server log if you switch the debug mode on:
pd4ml.enableDebugInfo();
The default “jsessionid” keyword can be changed with
-Dpd4ml.sessionid.varname=othername
JVM command line parameter.
in reply to: Caching policy October 6, 2010 at 23:55#27969@PD4ML wrote:
we have enabled external cache and we could see that the caching is working only in one rendering. i;e; If I use the same image in a sinlgle html file cacheing is working properly. but if the same image is used in another html then cache is not working.
Following is my test case.I have a html file which i am downloading “https://WWW.XXX/IMAGES/img1.gif” 20 times with in a single html.
And I am rendering this html 10 times using the JUNit.I expect the image to be downloaded only once. But the image is being downloaded 10 times(no of times i rendered the html.
Does the caching mechanism works only for each rendering ?
@PD4ML wrote:
PD4ML caches images and stylesheets only in memory.
The most recent builds allow to force PD4ML (with an explicit API call) to cache to /tmp directory. All cache files are created with deleteOnExit flag, so in non-fatal situations they are auto-deleted
#28227Good afternoon, any news on this?
#28228The needed functionality may be achieved (to some extend) with a proprietary tag, we implemented by a customer request.
See: pdf-generation-troubleshooting-f4/is-it-possible-to-toggle-multicolumn-from-page-to-page-t255.html
in reply to: java.lang.NullPointerException – Not picking up CSS file October 7, 2010 at 13:04#28232Obviously PD4ML successfully read the stylesheet, but CSS parser failed to interpret it. Could you please publish the stylesheet here or send it to support pd4ml com?
#28229Thank you for your reply, does this work in version 3.2.4 or is this version too old?
So just to clarify, I can use that tag in the body of my document (jsp) and it should just work?
eg.
<pd4ml:layoutbox maxcols=4 colspacing=20 scalelimit=0.75 width=220> All rooms here </pd4ml:layoutbox>
Many thanks
- pd4ml.setCookie( “JSESSIONID”, cookieValue );
-
AuthorPosts
