Forum Replies Created

Viewing 15 posts - 3,916 through 3,930 (of 4,249 total)
  • Author
    Posts
  • in reply to: Creating a pdf from html remains ‘hanging’
    #35286

    Unfortunately the issue is not reproducible in our test environments.

    Could you please share with us:
    1. Successfully created PDF sample (with

    Last Mod

    )
    2. CSS style applied

    Thanks in advance!

    in reply to: Technical questions / Troubleshooting
    #35488

    Hi, I am instantiating pd4ml from ColdFusion as follows. How can I use setPageMargins()?
    Meaning, I do not know how to set the margins using the below code. Thank you.

    Thank you

    Renderer = createobject(“java”, “org.zefer.pd4ml.PD4ML”).init();
    fInput = createObject(“java”, “java.io.File”).init(“#attributes.filein#.htm”).toURI().toURL();
    fOut = createobject(“java”, “java.io.FileOutputStream”).init(“#attributes.fileout#.pdf”);
    Renderer.render(fInput, fOut);

    fOut.close();

    in reply to: Technical questions / Troubleshooting
    #35578

    Initially we used the PD4ML jar version 3.10.9 with our product and in the subsequent releases we had to
    downgrade the version of PD4ML to 3.9.9 due to internal issues.

    with this change, the HTML Templates that were created when the product has PD4ML(3.10.9) jar are NOT rendered
    in the same way and all sorts of formatting/alignment issues are seen after downgrading the PD4ML jar to 3.9.9.

    PDF generated using PD4ML version 3.10.9 version has bigger font and zoomed in text etc., but the PDF generated using
    PD4ML version 3.9.9 has complete different look (default font is different, lot of spaces in the text area etc.,)

    following changes are observed in the PDF generated using PD4ML version 3.9.9:

    1. size of the font
    2. font type is different
    3. left margin is space is increased.
    4. lot of spaces in the text area.

    Note:
    PDF rendered using PD4ml version 3.10.9 & PD4ML version 3.9.9 are attached.

    We would like to see the PDF generated with 3.9.9 version exactly matches with the PDF generated using PD4ML version 3.10.9

    This is an urgent and high priority issue as some of our clients are experiencing the formatting/alignment issues in production
    environment.

    in reply to: Technical questions / Troubleshooting
    #35579

    The documentation of

    PD4ML.useTTF(pathToFontDirs, generateFontMappingFileIfMissing)

    defines, that pathToFontDirs is a “URI of TTF file directory”.
    Currently it seems, that it must be a directory in a (local) file system. Is this correct?

    Our service using PD4ML is running in a cloud environment, where the only available file system is the TEMP file system. Therefore we are copying the TTF fonts from the JAVA resources class path or from an external HTTP server to the TEMP file system on startup and setup useTTF() with this directory within TEMP. But maybe we have overlooked something.

    #35580

    Hi! From the problem description we would suspect it is something wrong with an applying of the initial conversion parameters or if your code relies on pd4ml.adjustHtmlWidth().

    Please report the issue to helpdesk pd4ml com and, if possible, supply the report with illustrative PDF samples, converted with the two software versions.

    Thank you in advance!

    in reply to: Loading TTF Fonts from http URL or class path URL
    #35581

    The API call PD4ML.useTTF(pathToFontDirs, generateFontMappingFileIfMissing) is rather a quick hack for a missing font mapping info and it is not recommended for a prod use.

    It’s much better to generate the pd4fonts.properties mapping once and include it in your project.

    There are various methods how to configure/include fonts. See https://pd4ml.com/pdf-fonts/.

    If you’ve got a limited access to the file system, it is good idea to collect fonts to a fonts/ dir, generate pd4fonts.properties for it and to pack the fonts incl. the .properties to a JAR. Once the JAR file is deployed in your application, the fonts can be referenced using pd4ml.useTTF("java:fonts"); where “fonts” corresponds to the name of the fonts folder in the JAR file.

    #35582

    Not able to upload the PDF files. Provide me a link where I can upload.
    Attachment section (Choose File) in the bottom doesn’t work.

    Not sure how can I report the issue to PDF helpdesk. Can you let know the steps/procedure for that.

    #35603

    Any updates on this ?

    in reply to: Technical questions / Troubleshooting
    #35630

    I have raised an issue using issue report form. After submitting the issue, it was mentioned that the updates to case will be emailed to
    the email address mentioned in the license. I have not received anything from the PD4ML team until now reg. the issue raised, also logging into the PD4ML website I cannot view the case details I have raised. How to reach PD4ML support team to know the status. Any information is highly appreciated.

    in reply to: General Question on the issue reported
    #35631

    Hi! As I can see the request came from a dummy email address and the notifications cannot reach your mailbox. Please contact support @ pd4ml com and we’ll update your profile with the right email.

    in reply to: Page number not full when converting HTML to PDF
    #35640

    Hi, I generated a pdf file with headers and footers but when rotating a page, the headers and footers are also rotated. How to avoid header and footer rotation when switching from landscape to portrait orientation ?

    PD4ML version : 4.0.9fx5 (also tried with 4.1.0-SNAPSHOT)

    Thank you for your help

    Attachments:
    You must be logged in to view attached files.
    in reply to: Technical questions / Troubleshooting
    #35643

    Hi, I generated a pdf file with headers and footers but when rotating a page, the headers and footers are also rotated. How to avoid header and footer rotation when switching from landscape to portrait orientation ?

    PD4ML version : 4.0.9fx5 (also tried with 4.1.0-SNAPSHOT)

    Thank you for your help

    Attachments:
    You must be logged in to view attached files.
    in reply to: Technical questions / Troubleshooting
    #35646

    We have some error logs created by PD4ML with the text

    ERROR CACHED ITEM java:/defaultfonts not found / not readable

    What is “/defaultfonts”?
    We have placed our fonts in the classpath under “/fonts” and they are successfully read from there. Do we have to create a /defaultfonts directory?

    in reply to: java:/defaultfonts error message
    #35647

    Please ignore the message. In PDF/A-b generation scenarios (when all used fonts have to be embedded to the resulting PDF and a usage of built-in Acrobat’s Type1 fonts is not allowed), java:/defaultfonts points to a fallback font source. Usually the fonts are in pd4ml_rc.jar. If you’ve got all fonts in your /fonts folder, even PDF/A generation does not need java:/defaultfonts.

    The invalid error message is to be suppressed in newer builds.

    in reply to: Headers and footers rotated on page rotation
    #35650

    Hi! I assume you rotate the page layout with
    <pd4ml:page.break pageFormat="rotate">

    <pd4ml:page.break pageFormat="reset">

    To prevent the headers and footers from rotating, you do not need to rotate the page layout, but simply change the page format to landscape. Unfortunately, for the time being this is only possible if you specify explicit dimensions in points. For example, landscape format A4:
    <pd4ml:page.break pageFormat="842x595">

Viewing 15 posts - 3,916 through 3,930 (of 4,249 total)