Forum Replies Created

Viewing 15 posts - 3,931 through 3,945 (of 4,249 total)
  • Author
    Posts
  • in reply to: Headers and footers rotated on page rotation
    #35656

    The latest v4.0.15fx2 snapshot build adds a new landscape option for convenience to change the page orientation without rotating the header and footer: <pd4ml:page.break pageFormat="A4,landscape">

    in reply to: Headers and footers rotated on page rotation
    #35663

    It works fine, thanks a lot for your help.

    in reply to: Licensing / Purchasing of PD4ML
    #35713

    Good morning, I need your help to understand which licence my company should buy.
    We are integrating PD4ML PRO in a java enterprise application, the final product:
    – SW id developed by 1 company division
    – the final product is deployed in clouds and on premises by 1 company division
    – the final product is sold by affiliate companies

    Please clarify is SITE license is enough or if we need to buy the ENTERPRISE one. Thanks.

    in reply to: Which licence, SITE or ENTERPRISE
    #35714

    Hello! If, in the described scenario, technical support requests will come from only one division of the company that developed the product, then a SITE license is sufficient.

    If selling affiliates/partners will also be requesting support directly (or forwarding requests from end users), then you will need an ENTERPRISE

    in reply to: Technical questions / Troubleshooting
    #35738

    We recognized a difference in the PDFs we rendered on windows to those on Linux systems.
    To test it we rendered the watermarkTest.html on both systems and the difference shows in the attached PDFs.
    The PD4ML version used is 4.0.15.

    Any idea to solve this issue is very much appreciated.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Technical questions / Troubleshooting
    #35782

    Hi,

    Greetings. Hope you are all well! I am using pd4ml to render a HTML stream as pdf. Legacy code uses PD4ML_ABSOLUTE_ADDRESS_SPACE and i am not sure what this constant does. Can someone please let me know the use of this constant?

    java.util.Map m = new java.util.HashMap();
    m.put(org.zefer.pd4ml.PD4Constants.PD4ML_ABSOLUTE_ADDRESS_SPACE, “document”);
    pd4ml.setDynamicParams(m);

    Regards,
    Bharat

    in reply to: PD4ML_ABSOLUTE_ADDRESS_SPACE
    #35783

    Hi! PD4ML_ABSOLUTE_ADDRESS_SPACE=document forced older versions of PD4ML to ignore impact of page breaks on the vertical coordinate axis.
    Let’s say you have an image absolutely positioned at y=200px and it still fits the first page of the document, and in your document there is a forced page break at 100px.
    With PD4ML_ABSOLUTE_ADDRESS_SPACE=document the image was placed still on the first page, but regular flow content with y>100px went to the next.
    With PD4ML_ABSOLUTE_ADDRESS_SPACE=page the image was placed on the next page as the regular flow content with y>100px.

    The option is not supported by v4 (until a customer request). The current behavior matches PD4ML_ABSOLUTE_ADDRESS_SPACE=page

    in reply to: PD4ML_ABSOLUTE_ADDRESS_SPACE
    #35784

    Hi, Thank you, Even though i am using PD4ML v4.0.13, i see there are old classes from org.zefer.pd4ml still available, Are you saying that org.zefer.pd4ml.PD4Constants.PD4ML_ABSOLUTE_ADDRESS_SPACE = document is no longer supported?

    Regards,
    Bharat

    in reply to: PD4ML_ABSOLUTE_ADDRESS_SPACE
    #35785

    The org.zefer.pd4ml classes in v4 are to support v4 JAR as a drop-in replacement for v3. The classes translate old API calls to the new ones where it is possible.

    PD4ML_ABSOLUTE_ADDRESS_SPACE = document behavior tried to simulate pagination logic of HTML printing in older Web browsers. As far as I know, modern browsers does not break pages that way anymore. So we did not try to reimplement the feature in v4 (yet).

    in reply to: PD4ML_ABSOLUTE_ADDRESS_SPACE
    #35786

    Thank you

    in reply to: Technical questions / Troubleshooting
    #35787

    Hi,

    Greetings. Hope you are well! I have a code rendering the HTML to pdf using both v 3 and v4. However in v3, it renders right but in v4 it does not render the entire HTML and format does not look good as well. This is the code i am using

    org.zefer.pd4ml.PD4ML pd4ml = new org.zefer.pd4ml.PD4ML(); java.awt.Insets margins = new java.awt.Insets(30,25,30,25); // Add letter border (top, left, bottom, right) pd4ml.setPageInsetsMM(margins); pd4ml.setPageSize(org.zefer.pd4ml.PD4Constants.A4); pd4ml.protectPhysicalUnitDimensions(); pd4ml.interpolateImages(true); java.util.Map m = new java.util.HashMap(); m.put(org.zefer.pd4ml.PD4Constants.PD4ML_ABSOLUTE_ADDRESS_SPACE, "document"); pd4ml.setDynamicParams(m); java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream(); org.zefer.pd4ml.PD4PageMark footer = new org.zefer.pd4ml.PD4PageMark(); footer.setPageNumberTemplate("$[page] of $[total]"); footer.setPageNumberAlignment(org.zefer.pd4ml.PD4PageMark.RIGHT_ALIGN); footer.setColor(new java.awt.Color(0x303030)); footer.setInitialPageNumber(1); footer.setPagesToSkip(0); footer.setFontSize(11); footer.setAreaHeight(20); pd4ml.setPageFooter(footer); pd4ml.render(new java.io.StringReader(HTMLStream), baos); baos.close(); return baos.toByteArray();

    I have attached the screen shots of pdfs rendered via v3 and v4. Please have a look

    Attachments:
    You must be logged in to view attached files.
    in reply to: pd4ml v4 does not render entire HTML stream
    #35790

    Hi! Could you please also share the source HTML doc with us?

    in reply to: pd4ml v4 does not render entire HTML stream
    #35791

    Hi, Greetings. Here is the source html. Same HTMl renders fine with pd4ml v3 but not with pd4ml v4

    _Junk pdf is from pd4ml v4, other pdf is from pd4ml v3

    Attachments:
    You must be logged in to view attached files.
    in reply to: pd4ml v4 does not render entire HTML stream
    #35795

    Hi,

    Greetings. Did you get a chance to look at this?

    Regards,
    Bharat

    in reply to: pd4ml v4 does not render entire HTML stream
    #35798

    Hi,

    Greetings. Hope you are well! Did you get a chance to look at the source html and see why the pdf is not rendering right when using pd4ml v4?

    Regards,
    Bharat

Viewing 15 posts - 3,931 through 3,945 (of 4,249 total)