Forum Replies Created

Viewing 15 posts - 3,211 through 3,225 (of 4,243 total)
  • Author
    Posts
  • in reply to: TTF embedding
    #27318

    If I execute the below codes i am getting PDF converter UI. It is not generating pd4fonts.properties and pd4browser.properties.

    Please help on this.

    create fonts/ directory (i.e /path/to/my/fonts/) and copy needed TTFs into it.
    run pd4font.properties generation command
    java -jar pd4ml.jar -configure.fonts /path/to/my/fonts/
    (as a result it should produce /path/to/my/fonts/pd4font.properties)
    reference /path/to/my/fonts/ directory from your Java/JSP/… code.

    in reply to: TTF embedding
    #27319

    @PegaDev wrote:

    If I execute the below codes i am getting PDF converter UI. It is not generating pd4fonts.properties and pd4browser.properties.

    Please help on this.

    create fonts/ directory (i.e /path/to/my/fonts/) and copy needed TTFs into it.
    run pd4font.properties generation command
    java -jar pd4ml.jar -configure.fonts /path/to/my/fonts/
    (as a result it should produce /path/to/my/fonts/pd4font.properties)
    reference /path/to/my/fonts/ directory from your Java/JSP/… code.

    Here is the original command

    java -jar C:tomcatwebappsprwebWEB-INFlib/pd4ml.jar -configure.fonts C:tomcatFonts

    in reply to: Custom Fonts
    #27413

    Please share the pd4fonts.properties file example. In my case also it is not generated pd4fonts.properties file. Instead of generating pd4fonts.properties it gives UI called PD4ML Converter. Please help me to generate the pd4fonts.properties and while mean pls share the working pd4fonts.properties file. Then i can manually create it and place it in font folder.

    in reply to: HTML/CSS rendering issues
    #27086

    Hello,
    I’m trying to convert html page below to pdf.
    If I convert it by PD4ML Converter tool, it works correctly, but if I try to convert it by Java application, page break doesn’t work.
    The problem seems like “position:absolute” css style on divPdfmTestoContainerClass div.
    Someone could help me?
    My version is 394 Pro DMS.

    <br /> <html><br /> <head><br /> <br /> <style><br /> <br /> p { margin: 0; padding: 0;};<br /> div { margin: 0; padding: 0;}<br /> <br /> .divPdfmRaccomandataClass {position: absolute;width: 0mm;height: 0mm;top: 0mm;left: 0mm;}<br /> .divPdfmAddressBoxContainerClass { width: 100%;position: absolute;top:15mm;height: 34mm;}<br /> .divPdfmAddressBoxClass {font-family: ARIAL;text-transform: uppercase;font-weight: normal; height: 100%;position: absolute;left:105mm; padding: 0; margin: 0;}<br /> *.divPdfmTestoContainerClass { width: 203mm;position: absolute; top: 50mm; margin: 0;padding-rigth: 11mm;padding-left: 16mm;}<br /> .divPdfmTestoClass {width: 176mm;}<br /> *.divPaginaMergeContainerClass { width: 203mm;position: absolute;margin: 0;padding-rigth: 11mm;padding-left: 16mm;}<br /> .divPaginaMergeClass {width: 176mm;}<br /> <br /> </style><br /> <br /> </head><br /> <br /> <body><br /> <!-- divPdfmAddressBoxClass ## start ## --><br /> <div class="divPdfmAddressBoxContainerClass"><br /> <span class="divPdfmAddressBoxClass"><br /> <p> FURLANIS MICHELE <br /> <br /> VIA BATTISTA 14 <br /> 30023 CAMOGLI GE</p><br /> </span><br /> </div><br /> <!-- divPdfmAddressBoxClass ## end ## --><br /> <!-- divPdfmTestoClass ## start ## --><br /> <div class="divPdfmTestoContainerClass"><br /> <span class="divPdfmTestoClass"> PAGINA 1<br /><br /> <pd4ml-page-break/> <br /><br />PAGINA 2<br /><br /> <pd4ml-page-break/> <br /><br />PAGINA 3<br /><br /> <pd4ml-page-break/></span><br /> </div><br /> <!-- divPdfmTestoClass ## end ## --><br /> <br /> </body><br /> <br /> </html><br />

    #29893

    I resolve using margin-top instead of position: absolute

    in reply to: Validation of HTML CSS styles
    #29847

    [On behalf of sameera]

    Thanks for the reply. We are able to see the warning message for incorrect css stylings in DEBUG mode on the STDOUT.

    But, we are looking for means to get the validation errors as part of either exception or some means of handler callback so that we can capture and show it to the end user on UI. Please let me know if you have any suggestions or approaches to achieve the same.

    Thanks.

    in reply to: HTML/CSS rendering issues
    #27078

    Hi,

    I give
    ನೀವು ಹೇಗಿದ್ದೀರಿ == kannada language which is Tunga font

    and telugu, tamil and thai language and along with hebrew sometimes.

    it gives output with special characters.

    for example :: for kannada “ನೀವು ಹೇಗಿದ್ದೀರಿ”
    it generates, “ನೀವೕ ಹೇಗಿದೕದೀರಿ”
    I have used,
    pd4ml.useTTF(fontMappingFile, true);

    fontmapping.properties is path to the pd4Fonts.properties which contains all these fonts and also in system the fonts are present.

    Please help.

    Thanks in advance.

    in reply to: HTML/CSS rendering issues
    #27087

    Hi,

    I give
    ನೀವು ಹೇಗಿದ್ದೀರಿ == kannada language which is Tunga font

    and telugu, tamil and thai language and along with hebrew sometimes.

    it gives output with special characters.

    for example :: for kannada “ನೀವು ಹೇಗಿದ್ದೀರಿ”
    it generates, “ನೀವೕ ಹೇಗಿದೕದೀರಿ”
    I have used,
    pd4ml.useTTF(fontMappingFile, true);

    fontmapping.properties is path to the pd4Fonts.properties which contains all these fonts and also in system the fonts are present.

    Please help.

    Thanks in advance.

    in reply to: PD4ML NOT SUPPORTING THAI AND OTHER Indian languages
    #29894

    I hope Pd4ml team responds, since i am in need asap.
    Thank you

    in reply to: HTML/CSS rendering issues
    #27088

    Hi,

    We are using PD4ML to convert HTML to PDF. But we are getting unwanted bold for 2 line numbers. We have tried coding in multiple ways but could not resolve that. Please help.

    in reply to: HTML/CSS rendering issues
    #27089

    Hi,

    We are using PD4ML to convert HTML to PDF. But we are getting unwanted bold for 2 line numbers. We have tried coding in multiple ways but could not resolve that. Please help.

    in reply to: Some image not loading when converting to PDF
    #29069

    @csueaq wrote:

    Hi there
    Hello Everyone,
    Image is not displayed while converting from html to pdf.
    I have picked randomly some image from internet like
    http://www.daycomsolutions.com/Support/BatchImage/HPIM0050w50.JPG
    But I am able to view image when placed in browser.
    How to fix this?
    Any help is appreciated ….Thanks

    ~/Downloads/pd4>java -Xmx512m -Djava.awt.headless=true -cp ./pd4ml_demo.jar:ss_css2-0.9.4_pd4ml2.jar Pd4Cmd ‘file:sample1.html’ 1200 LETTER -bookmarks HEADINGS -pdfforms -debug -out ./pd4ml.pdf
    version: PD4ML 399 (eval)
    default built-in stylesheet parsed [28ms]
    loading file:sample1.html [6ms]
    image not yet in cache: file:sf.jpg
    not yet in cache: file:sf.jpg
    loading file:sf.jpg [0ms]
    image size: 5510
    image not yet in cache: http://www.daycomsolutions.com/Support/BatchImage/HPIM0050w50.JPG
    not yet in cache: http://www.daycomsolutions.com/Support/BatchImage/HPIM0050w50.JPG
    loading http://www.daycomsolutions.com/Support/BatchImage/HPIM0050w50.JPG [26221ms]
    errno: 111 (Connection refused), error: Connection refused (local port 50735 to address 0:0:0:0:0:0:0:0, remote port 80 to address 74.208.20.166): http://www.daycomsolutions.com/Support/BatchImage/HPIM0050w50.JPG (socket timeout 0ms)
    image http://www.daycomsolutions.com/Support/BatchImage/HPIM0050w50.JPG has zero length.
    can not load image: http://www.daycomsolutions.com/Support/BatchImage/HPIM0050w50.JPG
    done in 27878ms.

    Many thanks

    Sudhakar

    in reply to: General questions / FAQ
    #27090

    Hello Everyone,
    Image is not displayed while converting from html to pdf.
    I have picked randomly some image from internet like
    http://www.daycomsolutions.com/Support/ … 050w50.JPG
    But I am able to view image when placed in browser.
    what is reason ? How to fix this?
    Any help is appreciated ….Thanks
    #########Content of sample1.html#########


    Hello


    hi friends


    Actual image




    ###################
    ~/Downloads/pd4>java -Xmx512m -Djava.awt.headless=true -cp ./pd4ml_demo.jar:ss_css2-0.9.4_pd4ml2.jar Pd4Cmd ‘file:sample1.html’ 1200 LETTER -bookmarks HEADINGS -pdfforms -debug -out ./pd4ml.pdf
    version: PD4ML 399 (eval)
    default built-in stylesheet parsed [28ms]
    loading file:sample1.html [6ms]
    image not yet in cache: file:sf.jpg
    not yet in cache: file:sf.jpg
    loading file:sf.jpg [0ms]
    image size: 5510
    image not yet in cache: http://www.daycomsolutions.com/Support/ … 050w50.JPG
    not yet in cache: http://www.daycomsolutions.com/Support/ … 050w50.JPG
    loading http://www.daycomsolutions.com/Support/ … 050w50.JPG [26221ms]
    errno: 111 (Connection refused), error: Connection refused (local port 50735 to address 0:0:0:0:0:0:0:0, remote port 80 to address 74.208.20.166): http://www.daycomsolutions.com/Support/ … 050w50.JPG (socket timeout 0ms)
    image http://www.daycomsolutions.com/Support/ … 050w50.JPG has zero length.
    can not load image: http://www.daycomsolutions.com/Support/ … 050w50.JPG
    done in 27878ms.

    Thanks,
    Sudhakar

    in reply to: General questions / FAQ
    #27092

    Hi all,
    I m rendering PDFs using PD4ml from Memory stream.

    After rendering PDF I’ve tried to open that file using File.Open() method.

    But only once I’ve got an error like following :
    “There was an error opening document. This file is damaged and could not be repaired.”

    In my log an exception of “The type initializer for ‘org.zefer.html.doc.css.CssRuntime’ threw an exception” is stored. But I’m not sure that this is the reason I’m just assuming that this could be the reason.

    But the problem is that this issue can’t be reproduced in my system. That’s why I can’t get the reason and a proper solution.

    Please help.

    #29914

    Try to open the PDF in a text editor (as plain text). I suspect the file either 0 bytes long or has only PDF file prefix.

    org.zefer.html.doc.css.CssRuntime init error is obviously a reason. For some reason it cannot locate all needed libraries (.DLLs in a case of .NET).

Viewing 15 posts - 3,211 through 3,225 (of 4,243 total)