Forum Replies Created
-
AuthorPosts
-
in reply to: Possible security hole in pd4ml February 2, 2010 at 13:19#27761
The issue is relevant only for scenarios, when you allow users to author, freely edit and save HTML templates on the server side. We find that as a bad practice in general.
It makes teoretically possible to address undesired resources (for example, images) on the server side. Of course, the addressing possibilities are limited by permissions of the user account, the application server runs under.
The most recent PD4ML betas implement a configuration parameter to limit the resource addressing scope.
in reply to: Case Study: PD4ML used on CCA + Images and fonts issues January 30, 2010 at 01:27#27533@RobotAyatollah wrote:
First, images with relative urls didn’t seem to work. The solution was obvious – use absolute urls for which we created a little Ruby helper method that prepended the full path to the image.
In general relative image references work correctly in PD4ML. A problem may happen in specific J2EE scenarios (a web application is deployed as non-expandable JAR or WAR file, for instance), but useServletContext() API call usually helps in such situations.
I would recommend you to switch the debug mode on (pd4ml.enableDebugInfo()) and to inspect the log file of the server. It should dump resolved relative URLs it tries to load.
@RobotAyatollah wrote:
Second, and much more frustrating! It seems that PD4ML doesn’t quite support all of the CSS I thought it would. Even though I had thought it supported font-family CSS properties, I could never get my basic font choices to appear in the PDF’s. This was really frustrating since our client, the CCA is pretty rigorous about which fonts it uses in publications. So the solution: I broke down and used the super old-school font-tag. Yeah, it really isn’t standard compliant and that kind of drives me nuts, but since the file generated is intended only for print and export to PDF I guess it works. And thats the point, it really does work and so the fonts I required are there.
You may use in the resulting PDFs virtually any TTF font of your choice, but for that you would need to utilize TTF embedding feature of PD4ML:
pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.htmlin reply to: uncorrect size for image January 29, 2010 at 10:30#27811HTML source of the document would help a lot to analyze the problem reason. Could you please send it to support or attach to the thread? Thanks.
in reply to: Url graph not displayed January 29, 2010 at 10:27#27826As far as I remember java.net.URL in older JDKs limits the URL to ~255 characters. Which version do you use?
in reply to: Rendering ends von </body> Tag January 26, 2010 at 14:38#27809The multi-document processing, you need, is in our TODO list, but it is not implemented yet.
The only solution for the time being is to preprocess the HTML before it goes to PD4ML and to remove all
</body>and</html>tags. Unfortunately all CSS styles defined in the documents are going to merge, which can result.in reply to: graph not plotted January 25, 2010 at 13:31#27807I suspect it is because of spaces in the image URL string.
How do
tag look like in your HTML?
in reply to: PD4PageMark doesn’t align tables January 22, 2010 at 22:27#27805Did you define width=100% for the table?
in reply to: Problem in displaying Japanese characters January 22, 2010 at 11:17#27803The following information should help:
pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.htmlin reply to: pd4ml does not have a strong name January 19, 2010 at 11:43#27785I’ve requested a special build to workaround the issue. Hopefully it will be ready tomorrow.
in reply to: Editable PDF January 15, 2010 at 18:51#27544PDF format itself is not intended to be edited. Normally you author your documents in a word processor (or in our case in HTML editor) and convert it to the “final” print-ready format: PDF.
There are some tools, which allow you to slightly modify PDF documents – for example, to substitute placeholders. But a full text editing of PDF with such tools would be rather a pain.
By default PD4ML does not protect PDFs from being edited. In order to disable that you would need to explicitly disable the editing permissions with setPermissions() API call.
in reply to: How to rename the auto generated pdf file before creation? January 15, 2010 at 18:35#27751Glad you found a solution.
If you need to define a default PDF file name to prompt to store on the client side, you may define the following attributes of
<pd4ml:transform><pd4ml:transform ... fileName="<%=fileName %>" inline="false">in reply to: pd4ml does not have a strong name January 15, 2010 at 16:05#27783In order to workaround the issue try to run a command-line (on the target machine) like the following upon all DLLs, distributed with PD4ML.NET:
sn.exe -Vr pd4ml.dllin reply to: Automatically open print dialog January 13, 2010 at 11:27#27654@wilvec wrote:
although i think that the tags are
<pd4ml:parameters>and<pd4ml:parameter>Right, we changed my initial idea with the tag naming and managed to implement the feature in v360b2
in reply to: trouble with relative path for img or css January 12, 2010 at 18:38#27781We’ve just published a new beta (v360b2), which workarounds the issue. Please give a try.
in reply to: trouble with relative path for img or css January 8, 2010 at 18:21#27779We plan to publish a new beta on Monday; it is currently under QA, so it is too late to add the bugfix there. I guess the fix will be available with the next beta in 2-4 weeks.
If you own or plan to purchase one of our volume licenses, hopefully we’ll be able to provide you with the fix next week.
-
AuthorPosts
