Forum Replies Created
-
AuthorPosts
-
in reply to: How to change the directory where the temp file is stored March 24, 2010 at 20:30#27929
Java API offers an alternative method to create tmp file, which allows to specify tmp/ directory location:
createTempFile(String prefix, String suffix, File directory)
A call of the method may look like that:
File file = File.createTempFile(“attachment”, “.” + fileName, new File(“e:\another\temp”));
in reply to: About text-indent March 24, 2010 at 13:35#27923If you consider the volume license, we could try to implement the feature within the next 2-3 days and provide you with a version to test asap.
PD4ML Pro would mean the standard implementation cycle: we’ll start after v360fx1 is finally released (~Apr. 15) and it will be available with v361b1 (not later than 1st of May). However there is a possibility we’ll address the issue sooner.
in reply to: About text-indent March 24, 2010 at 12:38#27921The feature is currently not implemented. We could add it to one of the forthcomming releases. The priority would depend on particular PD4ML product you (are going to) order.
in reply to: PDF loading crash in IE with Google Toolbar March 24, 2010 at 10:08#27918I would do the following:
1. Test if your instance of IE+Google toolbar can open other PDFs from the Web.
2. Save a generated PDF and open it in a text editor. Does it start with %PDF- ? Are there any spaces or new line characters before the prefix?
3. Try to define the following HTTP headers in the JSP:
X-Download-Options: noopen
X-Content-Type-Options: nosniffHere is some more headers to play with:
http://stackoverflow.com/questions/1242900/problems-with-header-when-displaying-a-pdf-file-in-ie8In order to switch the default HTTP headers of PD4ML taglib off, you would need to instal v360fx1b1 and define http=”noheader” attribute to
<pd4ml:transform>in reply to: PDF loading crash in IE with Google Toolbar March 24, 2010 at 08:35#279161. Do you use IE8?
2. Do you load the PDF by HTTP or HTTPS?in reply to: "Pd4ml.render" take long time to process March 24, 2010 at 08:32#27880In order to make sure you use not cached JAR version, please open the generated document in Acroread and go to File->Properties->Description->Producer. Is there really v360?
in reply to: logo in an img tag blows up March 23, 2010 at 15:39#27913Please give a try to the most recent beta, available for download from our site (v360fx1b1). It should resolve the issue.
in reply to: Problem in applying margins March 22, 2010 at 17:21#27899<pd4ml:transform>is a custom JSP tag, which works only in JSP container. Its attributes are mapped to PD4ML API calls. So in .JSP<pd4ml:transform pageFormat="A4" screenWidth="600" pageOrientation="portrait" pageInsets="10,30,20,20,mm">implicitly invokes pd4ml.setPageInsetsMM(new Insets(10, 30, 20, 20));If you do not use PD4ML JSP taglib, a call like pd4ml.setPageInsetsMM(new Insets(10, 30, 20, 20)); is the only way to define the margins.
in reply to: Fieldset Legend + Bold March 22, 2010 at 13:35#27906I’ve just run the test with your sample and got layout identical to a rendered by MS IE. So I would say the issue is solved too.
in reply to: Fieldset Legend + Bold March 22, 2010 at 13:12#27904You defined the style correctly, but the actual version of PD4ML offers limited style flexibility for the legend text (actually you may change only color, text style it inherits from the current context).
We’ve just fixed the problem in our development build. The version will be available for download in few days.
in reply to: Another Evaluation Question March 21, 2010 at 11:08#27897I tested the URL with v360 and was able to reproduce the issue, however the actual build, we are going to publish in few days, converted the document without problems. See attached.
If you are interested to test the build, we could send it to you asap. Please contact PD4ML support by email.
in reply to: Evaluation: Scaling March 19, 2010 at 21:37#27896pd4ml.fitPageVertically(); should do the trick
in reply to: Evaluating PD4ML March 18, 2010 at 14:10#27894A lot of “other” converters use MS IE or Mozilla native DLLs to load and render HTML. So the site returns versions, adapted for the browsers.
PD4ML uses our proprietary HTML rendering engine (100% Java, also ported to managed .NET code). It is PDF-output-oriented and it does not support JavaScript. Despite the product name “HTML-to-PDF converter”, PD4ML is not intended for web sites capture. Our goal is on PDF side: it is to allow you to define PDF layouts of any level of complexity with a language everybody knows – HTML.
If you plan to convert popular interactive web sites to PDF, most probably the result will disappoint you. A specialized PDF print driver will do the job better.
in reply to: Evaluating PD4ML March 18, 2010 at 13:39#27892Obviously the site returns layouts and styles, optimized for particular client browser – which is actually good practice.
PD4ML does not declare itself in HTTP request as any of the major browsers, so it receives a very basic HTML/CSS version (probably a version for mobile clients). As for me the HTML is converted correctly. See attached.
in reply to: Problem using noimagesplit-Option March 18, 2010 at 09:58#27891In order to avoid such issues, I would recommend not to use enableImgSplit(false).
A better approach would be to apply “page-break-inside: avoid” CSS property to particular table rows. In most of the cases it is also harmless to apply
TR {page-break-inside: avoid}to entire document. -
AuthorPosts
