Forum Replies Created

Viewing 15 posts - 1,261 through 1,275 (of 1,410 total)
  • Author
    Posts
  • in reply to: Possible security hole in pd4ml
    #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
    #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.html

    in reply to: uncorrect size for image
    #27811

    HTML 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
    #27826

    As 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
    #27809

    The 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
    #27807

    I suspect it is because of spaces in the image URL string.

    How do Image from the forum topic: graph not plotted tag look like in your HTML?

    in reply to: PD4PageMark doesn’t align tables
    #27805

    Did you define width=100% for the table?

    in reply to: Problem in displaying Japanese characters
    #27803

    The following information should help:
    pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.html

    in reply to: pd4ml does not have a strong name
    #27785

    I’ve requested a special build to workaround the issue. Hopefully it will be ready tomorrow.

    in reply to: Editable PDF
    #27544

    PDF 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?
    #27751

    Glad 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
    #27783

    In 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.dll

    in reply to: Automatically open print dialog
    #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
    #27781

    We’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
    #27779

    We 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.

Viewing 15 posts - 1,261 through 1,275 (of 1,410 total)