Forum Replies Created

Viewing 15 posts - 3,541 through 3,555 (of 4,246 total)
  • Author
    Posts
  • in reply to: Text on right side is cut away
    #30116

    Strange!

    pd4ml.useTTF(“java:fonts”, true)
    pd4ml.setDefaultTTFs(“Times New Roman”, “Arial”, “Courier New”)

    After adding this, I see (other as in “normal” pdf viewer) another font face but the margin is correct!
    Very strange.

    in reply to: PDF page headers/footers definition options
    #27296

    PD4PageMark footer = new PD4PageMark() {<br /> public String getHtmlTemplate(int pageNumber) {<br /> if ( pageNumber % 2 == 0 ) {<br /> return "<html><body>some left aligned stuff...";<br /> } else {<br /> return "<html><body>some right aligned stuff...";<br /> }<br /> }<br /> };<br /> pd4ml.setPageFooter(footer);

    every body help me please, it’s very urgent.
    i have followed the code above for printing even condition but something wrong here. if i didn’t print the first page number, the footer page didn’t print . if i tried by odd condition then the footer page will print.

    in reply to: PDF page headers/footers definition options
    #27297

    Please publish a PDF sample generated from your HTML code.

    Please make sure you use PD4ML Pro (or a derived VOL license binary). Also try to place right after opening tag. Does it changes anything?

    in reply to: HTML/CSS rendering issues
    #27179

    Hi Team,

    We are using the pd4ml for creating a PDF from HTML code and below is the manifest information from the jar file

    Manifest-Version: 1.0
    Class-Path: ss_css2.jar
    Ant-Version: Apache Ant 1.6.5
    Created-By: yGuard Bytecode Obfuscator 2.0.1
    Main-Class: org.zefer.pd4ml.tools.PD4Browser
    Implementation-Title: PD4ML Std
    Implementation-Version: 323b2

    After implementing the code using the jar file we are getting an error saying Stream Closed. The same jar file was working earlier but after a few tests we are getting the below error regularly in every case.

    java.io.IOException: Stream Closed
    at java.io.FileOutputStream.writeBytes(Native Method)
    at java.io.FileOutputStream.write(FileOutputStream.java:326)
    at org.zefer.pd4ml.pdf.b.?00000(Unknown Source)
    at org.zefer.pd4ml.pdf.b.o00000(Unknown Source)
    at org.zefer.pd4ml.pdf.e.oO0000(Unknown Source)
    at org.zefer.pd4ml.pdf.e.?O0000(Unknown Source)
    at org.zefer.pd4ml.pdf.e.?O0000(Unknown Source)
    at org.zefer.pd4ml.pdf.e.null(Unknown Source)
    at org.zefer.pd4ml.pdf.e.?o0000(Unknown Source)
    at org.zefer.pd4ml.pdf.e.?00000(Unknown Source)
    at org.zefer.pd4ml.pdf.e.close(Unknown Source)
    at org.zefer.pd4ml.pdf.PD4Device.dispose(Unknown Source)
    at org.zefer.pd4ml.pdf.PD4Device.finalize(Unknown Source)
    at java.lang.System$2.invokeFinalize(System.java:1270)
    at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:98)
    at java.lang.ref.Finalizer.access$100(Finalizer.java:34)
    at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:210)

    Please let us know the further steps that we have to follow to get the successful pdf without any errors in future. Attached the code that we are using for generating the PDF from HTML code for your reference.

    in reply to: TTF embedding
    #27321

    ße

    in reply to: HTML/CSS rendering issues
    #27180

    [attachment=0:3uy686o6]List of ttf_Server.txt[/attachment:3uy686o6]Hi,

    We have a requirement to generate PDF with 31 international languages through PEGA. So, we used required ttf font files and PD4ML JAR (Version: 390 Pro DMS) to generate font properties file (http://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htm). We are able to generate pdf but facing below issues. Could you please let us know what’s causing these issues and help to get out of this.

    1. Images are not displaying in generated PDF. We are having images in local path of PEGA like “Webwb/”.
    2. Only for 5 languages Cambodian, Amharic, Gujarati, Laotian, Punjabi generated PDF is displaying junk ‘?’ characters. Even though we loaded all the required ttf fonts files into path.

    Attached the Java code “GeneratePDF-UsingPD4ML.txt” which is used to generate PDF and list of ttf font files available in server “List of ttf_Server.txt” .

    in reply to: Images are not displaying in PDF (PD4ML generation)
    #30127

    Now fonts issue was resolved, we are able to get all the foreign languages in to PDF without junk(?) characters.

    in reply to: HTML/CSS rendering issues
    #27178

    is css3 supported, getting some errors

    in reply to: HTML/CSS rendering issues
    #27177

    Hi,

    Since the last version, embedded images are ignored.

    i think the problem is on expression language (EL).

    I use some img tag like this:

    Are Exression language compatible with pd4ml anymore ?

    Best regards,
    Jean-Paul Blanc

    in reply to: Troubleshooting
    #27175

    Hi,

    My images are generated by Jfreechart and saved in the temp directory. I cannot know their name in advance.

    With previous version I’haven’t any problems, i used:

    Of course ‘test.src’ contains location and image’s name.

    Now pd4ml read this with ‘null’ for src attribut …

    How can I specify dynamical name ?

    Regards,

    in reply to: PDF generation with html with css3
    #30124

    I am creating one htmlString and pass to Pd4ml to generate PDF
    for background color i need to use Linear-gradian tag in css which is not support in PDF
    Please reffer below code:
    htmlString.append(“

    “);

    in reply to: Expression Language
    #30123

    PD4ML supports dynamic placeholder $[var] substitution with pd4ml.setDynamicParams() API call. (note the square brackets!)

    Do you try to use ${test.src} with pd4ml.setDynamicParams()? I am afraid it does not work.

    If it is about a more general use of Expression Language, please make sure the EL elements are resolved before the HTML is passed to PD4ML. PD4ML does not process EL by itself.

    in reply to: Dynamical image
    #30121

    > Now pd4ml read this with ‘null’ for src attribut …

    I would suspect the placeholder is wrongly substituted with null (by JSP container etc) before PD4ML came into action.

    in reply to: PDF generation with html with css3
    #30125

    A lot of CSS3 features supported, but currently not all the spec.

    in reply to: Deployment / Configuration issues
    #27176

    Hi,

    I have a batch application in java platform to convert HTML file to PDF.And the HTML file has Chinese character in it.I am using fonts.jar and ttf embedding for that.It is working fine in windows system but not working when I deployed it on the production server which is Linux system.

    Following are the error/details I am getting in the logs.

    version: PD4ML 398fx3 Pro
    not yet in cache: java:fonts/pd4fonts.properties
    resource java:fonts/pd4fonts.properties not found.
    default built-in stylesheet parsed [13ms]
    default built-in stylesheet parsed [3ms]

    Can anyone please help me out this?

Viewing 15 posts - 3,541 through 3,555 (of 4,246 total)