Forum Replies Created

Viewing 15 posts - 2,536 through 2,550 (of 4,243 total)
  • Author
    Posts
  • in reply to: First css selector is applied when selectors have same name
    #29431

    We identified a problem with a precedence of selectors with identical weight (aka CSS Specificity). The issue is going to be fixed with forthcoming maintenance release.

    in reply to: First css selector is applied when selectors have same name
    #29432

    Thank you.

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

    Hi

    I am evaluating pd4ml. Do headers/footers work with the evaulation version? Here is my code:

    File pdf = new File("/tmp/test.pdf");<br /> <br /> PD4ML pd4ml = new PD4ML();<br /> <br /> try (java.io.FileOutputStream fos = new java.io.FileOutputStream(pdf))<br /> {<br /> {<br /> PD4PageMark header = new PD4PageMark();<br /> header.setHtmlTemplate("<font color="red"><i>header $[page] of $[total]</i></font><br>");<br /> header.setAreaHeight(50);<br /> pd4ml.setPageHeader(header);<br /> }<br /> {<br /> PD4PageMark footer = new PD4PageMark();<br /> footer.setHtmlTemplate("<font color="red"><i>footer $[page] of $[total]</i></font><br>");<br /> footer.setAreaHeight(50);<br /> pd4ml.setPageHeader(footer);<br /> }<br /> pd4ml.enableDebugInfo();<br /> pd4ml.render(new StringReader("<html><body>BODY<pd4ml:page.break/>BODY2<pd4ml:page.break/>BODY3</body></html>"), fos);<br /> }

    This is the version: version: PD4ML 385 (eval)

    The PDF doc has 3 pages, the evaluation version thing is there in the footer but nothing else appears in the header or the footer area. Can you please advise what I am doing wrong?

    Thank you,
    Jozsef

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

    HTML header/footer templates are supported by PD4ML Pro (and derived volume licenses). As I see you evaluate PD4ML Std, which provides support for text-only header/footer.

    See http://pd4ml.com/cookbook/pdf_header_footer_generation.htm

    in reply to: span tag not displaying border
    #28925

    Maybe you can use the tag, to draw border around the text.

    Hello <input id=”” class=”” style=”cursor: auto; border: 3px solid blue; font-size:14px; width: 50px;” value=”$1000″/>

    But, you need set manually the width for the tag.

    Best solution could be, if will be supported, or any other way you can do that with the same result.

    in reply to: span tag not displaying border
    #28926

    display: inline-block; applied to DIV should also do the trick.

    [language=xml:2bodw95c]

    Hello

    $1000

    [/language:2bodw95c]

    in reply to: HTML/CSS rendering issues
    #26891

    Hi there,

    We have just bought PD4ML pro for use on our site. We are using this to show chemical data. It is often necessary to show a subscript immediately under a superscipt. To do this in HTML we use the following tag:

    n25D+1.5690

    This looks fine in HTML with the ‘D’ appearing below the ’25’ but when we create the PDF, it does not apply
    style=”position: relative; left: -1.2em;”
    It is absolutely necessary that we are able to show subscripts under superscripts in the PDFs can you tell us how to acheive this?

    Thanks
    Megan Eisenbraun

    in reply to: PD4ML Tips & Tricks
    #26892

    Hello,

    We would like to do byte-to-byte comparison of expected and generated PDF files in our automated testing suite.

    As explained in the official documentation of PD4ML, we have overridden the PD4ML_DOCUMENT_DATE attribute : http://pd4ml.com/api/org/zefer/pd4ml/PD4Constants.html#PD4ML_DOCUMENT_DATE

    However, we have found other attributes that absolutely need to be overridden to make our tests pass.

    1) At the bottom of the PDF file, the “/ID [GENERATED_NUMBER]” metadata is generated randomly.

    Please advise how we can override this value with a fixed user provided value.

    2) The order of the embedded object declaration (/XObject metadata) is random.

    Sometimes we have :

    /XObject <<<br /> /img1 4 0 R<br /> /img2 5 0 R<br /> /img0 3 0 R<br /> /img3 2 0 R<br /> >><br />

    Other times :
    <br /> /XObject <<<br /> /img3 2 0 R<br /> /img1 4 0 R<br /> /img2 5 0 R<br /> /img0 3 0 R<br /> >>

    And so on.

    We use Velocity with CSS attributes to embed images so the order of inclusion should not be random.

    Please advise how we can fix the order of the /img elements.

    Thanks

    in reply to: position: relative; for subscripts under superscripts
    #29439

    PD4ML has some restrictions with relative positioning (it can be applied not to all tags, and as I see ’em’ units are not supportd for re-positioning)

    Needed appearance can be achieved with the code:

    [language=xml:33w7thy1]n25D+1.5690[/language:33w7thy1]

    in reply to: Automated testing – Random values
    #29440

    Some time ago we specially addressed automatic testing issues.

    A JVM parameter like -Dpd4ml.document.id=0123456789abcdef (16 chars) should help to resolve /ID [GENERATED_NUMBER] issue.

    Also the image references are sorted by original image paths. Can it be that the paths differ from test to test?

    in reply to: Automated testing – Random values
    #29441

    Thanks for your answer.

    Setting the system property solved the random ID issue.

    Concerning image paths, they are defined in a static CSS file.

    This CSS file is located in a fixed directory. The images also.

    I would have looked at the source code in debug to understand the issue but I do not have access to the source code.

    Could you think of anything else that would randomize this list?

    Thanks for your help.

    in reply to: Automated testing – Random values
    #29442

    Obviously it would make sense to sort the image references by image IDs. I’ve just corrected the code in the development build, and it seems XObject dictionary appears sorted now.

    in reply to: Automated testing – Random values
    #29443

    Would you know in which version and/or at which time this fix would be released?

    in reply to: Automated testing – Random values
    #29444

    We could send you an interim development build. Contact support pd4ml com. Currently the image reference sorting is the only difference from v385fx3

    in reply to: Barcode font problem
    #29091

    @hanson wrote:

    I used there free Code 39 barcode font for my Word. And it works fine.

    Word? Do you mean this free barcode creator can create barcode image on document file, like Word? Then how about the PDF file?

Viewing 15 posts - 2,536 through 2,550 (of 4,243 total)