Forum Replies Created

Viewing 15 posts - 1,141 through 1,155 (of 1,410 total)
  • Author
    Posts
  • in reply to: Caching policy
    #27966

    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

    #28054

    I would expect a memory leak exposes itself a different way. Here it looks like an allocation of a huge amount of memory.

    How many bytes does com.cmti.pdfgen.TiffImageLoader.getResourceAsBytes() return for the three images?

    in reply to: CSS Styles aren’t applied, can someone help me?
    #28058

    > pd4ml.render(new StringReader(html), os);

    If your CSS stylesheet is referenced from the HTML as a standalone file, probably render() method with base URL should help.

    In any case pd4ml.enableDebugInfo() should help to detect external resource loading problems.

    > pd4ml.addStyle(styles)

    The method is available only in PD4ML Pro (and derived volume licenses). Do you use Std or Pro?

    #28052

    Yes, images with big dimensions normally require a lot of RAM and easily exceed small default JVM max heap size.

    You may override the default JVM max heap size value in notes.ini
    For example
    JavaMaxHeapSize=671088640
    or
    JavaMaxHeapSize=640mb

    The only problem is that you need to manually do the .INI changes on all client PCs.

    in reply to: Different Languages
    #27948

    PD4ML Std supports only Latin-1 character set. If you have to create Arabic documents of PDFs with special characters – you definitely need PD4ML Pro or any of PD4ML volume licenses.

    In order to create Arabic documents you need to utilize TTF embedding feature of PD4ML: pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.html

    in reply to: How to add page footer in asp and c#.net
    #27963

    PD4PageMark footer = new PD4PageMark();
    footer.AreaHeight = 30;
    footer.FontSize = 12;
    footer.Color = Color.Red;
    footer.setPageNumberTemplate("Page: $[page] of $[total]");
    footer.setTitleTemplate("Footer - $[title]");
    footer.TitleAlignment = PD4PageMark.RIGHT_ALIGN;
    footer.PageNumberAlignment = PD4PageMark.LEFT_ALIGN;
    footer.PageBackgroundColor = Color.WHITE;
    
    pd4ml.PageFooter = footer;

    in reply to: not generating pdf for html page with contains frame
    #28038

    Please send us (or attach to a post) such PDF sample.

    The message reminds me the default apache web server page. So I would suspect network or proxy configuration issues on your side.

    in reply to: including external html
    #28043

    tag has been implemented for special use (conversion of lotus notes documents), so for the time being it accepts base64-encoded tag body only. SRC attribute is not currently implemented.

    in reply to: When HTML page is large generated pdf skipping contents
    #28048

    The issue is caused by “OVERFLOW: hidden” style of body element.

    You need either to remove the style, or to allocate space with not absolutely positioned content. For example by adding of <div style="height: 1500"/> after <body>

    in reply to: pd4browser.properties
    #27688

    1. Actually viewer.params is intended to make possible to open generated PDFs by exotic PDF viewers (if any). Let’s say the viewer requires to put an extra switch before PDF name:

    myexoticpdfreader.exe -input output.pdf

    In the case you would need to define

    viewer.params=-input

    in pd4browser.properties. If you want to use the property to pass PDF open parameters, you need to specify them fully:

    viewer.params=/A “page=3=OpenActions”

    (the above makes sense only in offline scenarios!)

    2. You may define desired page format in pd4browser.properties

    page.format=LETTER

    but why don’t you use Pd4Php for that?

    https://pd4ml.com/php.htm

    In the case you may pass the open parameter (from your first question) like that:

    http://myserver.de/mypdfgenerating.php#page=3

    in reply to: When HTML page is large generated pdf skipping contents
    #28046

    A doument sample would help to analyze the issue. Could you please attach it to a post or send to PD4ML support by email.

    in reply to: URL not rendering content
    #28045

    Hmm… I opened the attached PDF and it does not appear blank. It is google.co.in start page.

    Please take into account, 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.

    in reply to: pdf resize problem
    #27925

    Normally the issue only impacts a screen view of documents. Print must be ok.

    If you define cell background, by small zoom factors the background may partially overlap cell borders (it is an issue of coordinate rounding by a rendering of PDF in Acroread). A workaround is to un-define table cell background colors.

    in reply to: How auto splite image inpd4ml
    #27355

    If the image dimensions fit a single page, there is a couple of methods should help:

    • PD4ML API call pd4ml.enableImgSplit(false)
    • CSS style IMG { page-break-inside: avoid }. In most of situations it is better to apply style page-break-inside: avoid not to an image directly, but to its hosting container (div, table row, etc).

    Of course, if a particular image does not fit a single page, both methods take no effect for it.

    From the two alternatives we would recommend to use the CSS approach. If your HTML documents are read-only, you may define the extra styles with addStyle() PD4ML API call.

    in reply to: Is it possible to set header/footer scope via the API?
    #27838

    There are 3 ways to define headers or footers with PD4ML:

    html-pdf-faq-f1/pdf-page-headers-footers-definition-options-t41.html

    The first and the second (definition via PD4ML API) always allocate fixed amount of space.

    The third option should do the trick for you.

Viewing 15 posts - 1,141 through 1,155 (of 1,410 total)