Forum Replies Created

Viewing 15 posts - 3,391 through 3,405 (of 4,246 total)
  • Author
    Posts
  • in reply to: MetaData are ignored
    #30008

    [language=java:6syqhdqw]/**
    * The method defines custom properties for PDF document meta data. The method takes effect only in PD4ML Volume DMS and PD4ML SRC license binaries.
    * @param key a unique name, which must not be one of the standard property names Title, Author, Subject,
    * Keywords, Creator, Producer, CreationDate, ModDate and Trapped
    * @param value data itself
    * @param hide makes the metadata not appear in the PDF document properties dialog of Acroread
    */
    public void addMetadata(String key, String value, boolean hide) {
    …[/language:6syqhdqw]

    There are dedicated API methods pd4ml.setAuthorName() and pd4ml.setDocumentTitle() could help you to workaround.

    Also you can try to post-process generated PDFs with PD4Document/PD4DocumentBase API.

    in reply to: pd4ml ignores images behind a http redirect
    #30015

    The forthcoming PD4ML v4 should solve the issue.

    If a maintenance period of your license has not been expired yet we could consider to add the missing redirect feature to PD4ML v3.10.2

    in reply to: Rendering through jsp tags
    #30011

    In an ideal situation the taglib should work correctly without any tuning/adjusting. You only need to enclose your HTML document to opening and closing tags.

    If relative links are not resolved, add debug=”true” attribute to the transform tag and inspect the server’s log for diagnostics info.

    in reply to: MetaData are ignored
    #30009

    I am blind 🙂
    I am using Volume Licence not DMS 🙁

    I will correct this asap 🙂

    in reply to: how to show background image in full size of page
    #30013

    but im not able to get setPageFooter() keyword so what to do for that is any namespace missing??
    i am getting this error…..

    in reply to: how to show background image in full size of page
    #30014

    You are right. In C# it can be done slightly different:

    [language=java:1djjzu7x]pd4ml.PageHeader = footer;[/language:1djjzu7x]

    in reply to: General questions / FAQ
    #27138

    Hi,
    I am working on a linux machine and I am having issues with image being rendered. I have gone through a lot of your articles regarding this issue but I am not able to get to a conclusion. The error that I am getting for the same is –

    version: PD4ML 399fx2 Pro DMS
    cache disabled. (re-)reading file:/usr/share/fonts/fonts/pd4fonts.properties
    loading file:/usr/share/fonts/fonts/pd4fonts.properties [0ms]
    default built-in stylesheet parsed [17ms]
    ‘serif’ is not in pd4fonts.properties file
    reject TTF lookup for: ‘serif’
    cache disabled. (re-)reading file:/usr/share/fonts/fonts/times.ttf
    loading file:/usr/share/fonts/fonts/times.ttf [1ms]
    read ‘times new roman’ from file:/usr/share/fonts/fonts/times.ttf
    cache disabled. (re-)reading http://test4.j.layershift.co.uk/storage/servlet/Image?c=109817036&fileName=tmp_4306295860532994370.png&contentType=image%2Fpng&suggestedName=rlq_logo.png
    loading http://test4.j.layershift.co.uk/storage/servlet/Image?c=109817036&fileName=tmp_4306295860532994370.png&contentType=image%2Fpng&suggestedName=rlq_logo.png [4ms]
    Connection refused: http://test4.j.layershift.co.uk/storage/servlet/Image?c=109817036&fileName=tmp_4306295860532994370.png&contentType=image%2Fpng&suggestedName=rlq_logo.png (socket timeout 0ms)
    image http://test4.j.layershift.co.uk/storage/servlet/Image?c=109817036&fileName=tmp_4306295860532994370.png&contentType=image%2Fpng&suggestedName=rlq_logo.png has zero length.
    can not load image: http://test4.j.layershift.co.uk/storage/servlet/Image?c=109817036&fileName=tmp_4306295860532994370.png&contentType=image%2Fpng&suggestedName=rlq_logo.png
    cache disabled. (re-)reading http://test4.j.layershift.co.uk/storage/servlet/Image?c=109817036&fileName=tmp_8102844228446525387.png&contentType=image%2Fpng
    loading http://test4.j.layershift.co.uk/storage/servlet/Image?c=109817036&fileName=tmp_8102844228446525387.png&contentType=image%2Fpng [0ms]
    Connection refused: http://test4.j.layershift.co.uk/storage/servlet/Image?c=109817036&fileName=tmp_8102844228446525387.png&contentType=image%2Fpng (socket timeout 0ms)
    image http://test4.j.layershift.co.uk/storage/servlet/Image?c=109817036&fileName=tmp_8102844228446525387.png&contentType=image%2Fpng has zero length.
    can not load image: http://test4.j.layershift.co.uk/storage/servlet/Image?c=109817036&fileName=tmp_8102844228446525387.png&contentType=image%2Fpng
    done in 287ms.

    However, I am able to render the same image in a different machine.

    Please help me out to figure out the exact issue that is causing this problem. Also let me know if anything else is required on my end.

    in reply to: Troubleshooting
    #27139

    Hi,

    whenever i generate a pdf with a watermark, the size of the resulting pdf is multiple times larger than just the file without a watermark + watermark image size (sometimes even 10x bigger)

    Encountered in an old version, but persistent in 3.10.0 pro demo as well.

    Thanks

    in reply to: Generated pdf with watermark file size is too big
    #30022

    It depends on the image type you use as a watermark.

    GIFs or some species of PNG cannot be embedded to PDF “as is” and has to be converted to PDF native image format which is in fact a gzipped sequence of pixel color values. The PDF image format requires significantly more space for storing pictures (comparing to GIF, PNG etc).

    Try to use JPEGs (even with high quality settings) as watermarks.

    in reply to: HTML to PDF conversion For Large HTML Pages
    #28331

    Was there a solution to this one? I am facing the same problem.

    @nileshmanjare wrote:

    Hi Experts,

    We are facing some difficulties in using the pd4ml java libraries with large html input. For your reference I have attached a html page and a jsp I have used for the conversion. The pd4ml version we are using is “pd4ml.volume.370”.

    When we convert small html pages it works very well but for large html pages it takes very long time for the conversion. In some of the cases server goes out of memory. For the attached html page conversion happens in the fraction of seconds. But if we have about 60,000 lines in the same format as an attached html then we don’t get result back.

    Other than this we find pd4ml very handy to use. Also the new feature “RTF format” you have added in the latest release will be quite useful for us.

    Your advice on the large html conversion will be highly appreciated.

    Thanks & Regards,
    Nilesh Manjare
    eQ Technologic.

    in reply to: Troubleshooting
    #27140

    Hi, for some reason the 3.10.0 pro demo version started throwing stack underflow exceptions

    java.lang.RuntimeException: stack underflow
    at org.zefer.css.y.?00000(Unknown Source)
    at org.zefer.css.p.o00000(Unknown Source)
    at org.zefer.css.p.o00000(Unknown Source)
    at org.zefer.css.f.new(Unknown Source)
    at org.zefer.html.doc.css.c.?0O000(Unknown Source)
    at org.zefer.html.doc.PD4MLHtmlParser.buildDocument(Unknown Source)
    at org.zefer.pd4ml.PD4ML.o00000(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)

    The exact same implementation that is using the library works without a problem for the previous version we are using right now.

    in reply to: HTML/CSS rendering issues
    #27141

    I am facing this issue, where i have a servlet to which i pass html content and try to convert it in PDF, content of page gets converted into PDF, but while rendering page is not using any CSS files, to debug i enabled debug mode and i get

    csstest.css (The system cannot find the path specified): file:css/test.css (socket timeout 0ms)

    After looking at forums, i came across useServletContext and useHttpRequest, tried using both, still same issue.

    Below are the complete logs.
    version: PD4ML 3101 Pro DMS
    loading CSS file for file:css/test1.css
    not yet in cache: file:css/test1.css
    loading file:css/test1.css [1ms]
    csstest1.css (The system cannot find the path specified): file:css/test1.css (socket timeout 0ms)
    can not read file:css/test1.css
    loading CSS file for file:css/test2.css
    not yet in cache: file:css/test2.css
    loading file:css/test2.css [0ms]
    csstest2.css (The system cannot find the path specified): file:css/test2.css (socket timeout 0ms)
    can not read file:css/test2.css
    loading CSS file for file:css/test3.css
    not yet in cache: file:css/test3.css
    loading file:css/test3.css [0ms]
    csstest3.css (The system cannot find the path specified): file:css/test3.css (socket timeout 0ms)
    can not read file:css/test3.css
    loading CSS file for file:css/test4.css
    not yet in cache: file:css/test4.css
    loading file:css/test4.css [1ms]
    csstest4.css (The system cannot find the path specified): file:css/test4.css (socket timeout 0ms)
    can not read file:css/test4.css
    image not yet in cache: file:images/pCaller.png
    not yet in cache: file:images/pCaller.png
    loading file:images/pCaller.png [0ms]
    imagespCaller.png (The system cannot find the path specified): file:images/pCaller.png (socket timeout 0ms)
    image file:images/pCaller.png has zero length.
    can not load image: images/pCaller.png
    done in 1001ms.
    resulting PDF size: 32157 bytes

    in reply to: Issue with Image Rendering
    #30019

    Hello,

    I’m having the same issue when using Linux box. I’m able to render the images for the html type templates that I use, however, wherever the PD4ML implementation is used, it fails to render the images with similar error – in PDF’s.

    Is this some kind of known issue for you guys or something is missing from my end? and what are the possible points I could look for. As the original user posted, the articles are not much of help, even I tried most of it and found this recent entry.

    Any help to fix this issue would be highly appreciated !!!.

    Thanks in Advance,
    Mani.

    in reply to: PDF not able to use relative paths
    #30024

    Fixed above issue, but i am stuck on another one, another something i read in multiple threads, but not sure whether its supported or not, i have an HTML which has a main header, and then table header i want to repeat both of them on page breaks, below is what i am trying to do.

    Header 1
    Table Header Table Header Table Header Table Header Table Header Table Header Table Header

    26

    My Content

    27

    My Content

    28

    My Content

    1

    My Content

    2

    My Content

    3

    My Content

    4

    My Content

    in above example i know that pd4ml doesn’t supports thead, what i am doing is breaking the html on the basis of thead, tbody and tfooter, and using it to set below api’s

    pd4ml.setPageHeader
    pd4ml.render
    pd4ml.setPageFooter

    What happens is, it only displays Header 1, Table header’s are never displayed, if i remove Header 1, Table Header’s are displayed, but i want both of them to be displayed in each page.

    in reply to: PDF not able to use relative paths
    #30025

    Never mind fixed above as well, posting it for someone who is faces same issues
    1. css not getting rendered :- in my cases i had to add an extra / before css path, it started taking relative path.
    2. header getting cut off :- i had to use pd4PageMark.setAreaHeight, this fixed issue for me.

    my next step is to move whole thing from servlet to rest service, lets see how it goes.

Viewing 15 posts - 3,391 through 3,405 (of 4,246 total)