Forum Replies Created

Viewing 15 posts - 226 through 240 (of 1,410 total)
  • Author
    Posts
  • in reply to: Creating a custom resource loader for https only?
    #29795

    In general PD4ML should work correctly with HTTPS resources by default without custom resource loaders.

    The only exceptions are Weblogic and WebSphere, which implement proprietary SSL layers, not derived from the standard Java classes (and cause ClassCastException)

    in reply to: How to add inline footer to last page only?
    #29824

    PD4ML API/custom tags allow to define a scope for page header/footer. For example: scope=”1,2″, scope=”2+”, scope=”even”, scope=”skiplast”.

    scope=”last” support is problematic to implement. In an extreme case the last page may have no space to place a footer: it should force a page break and the trailing footer goes to new page with no content, which is undesired.

    In order to prevent it you may use a conditional page break to move some content (to make the last page not totally blank) and a footnote.

    Example:

    ....
    ....
    text text text ...
    
    the last text section...
    ....
    ....
    totals section

    The page break will take effect only if the remaining vertical page space is less than 200px (and the last text section + footnote do not presumably fit it)

    ifSpaceBelowLessThan parameter value for your document structure/layout needs to be found an empiric way.

    in reply to: ByteArray loading of PD4ML
    #29836

    Could you please send a corrupted PDF sample to support pd4ml com?

    Also:

    1. In the section only the last setPermissions() call takes effect:

    pd4ml.setPermissions("empty", PD4Constants.AllowPrint, true);
    pd4ml.setPermissions("empty", PD4Constants.AllowModify, false);
    pd4ml.setPermissions("empty", PD4Constants.AllowCopy, true);

    Correct API call:

    pd4ml.setPermissions("empty", PD4Constants.AllowPrint |
    PD4Constants.AllowModify | PD4Constants.AllowCopy, true);

    2. Right MIME type for PDF is

    response.setContentType("application/pdf");

    in reply to: Debugging PD4ML in a .NET Windows Service
    #29841

    Thank you for sharing the info!

    WCF supports a number of service initialization methods: http://blogs.msdn.com/b/wenlong/archive/2006/01/11/511514.aspx

    A straightforward way would be to redirect the console by WCF service start in AppInitialize() (and instantly test it with Console.Error.WriteLine() if needed)

    Note: if AutoFlush is not disabled, you may see the first log output only after an output buffer is full.

    in reply to: pd4ml:include not working as an alternative of $[page], $[to
    #29833

    The issue has been fixed in DEV build. The fix will be available with v398fx2 in about two weeks. Contact support pd4ml com if the issue is critical and you need an interrim fixed version sooner.

    in reply to: pdf to png
    #27876

    PD4ML is PDF-producing library. In order to convert PDF to PNG, you would need a library, which can render PDF. Here is some discussion about:

    http://stackoverflow.com/questions/4437910/java-pdf-viewer

    in reply to: Debugging PD4ML in a .NET Windows Service
    #29839

    I’ve forwarded the question to our .NET team. I’ll let you know as soon as we have new info.

    in reply to: Issue with registered sign on bookmark
    #29835

    pd4ml.useTTF(“java:defaultfonts”, true) would take effect only in a case, if your application includes a JAR with TTF font files placed defaultfonts/ folder of the JAR.

    Try to do the following:
    1. Upgrade to v398fx1 and test. If it does not resolve the issue, proceed to #2

    2. Try to generate a font mapping file for the standard OS fonts: https://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htm
    i.e.
    java -jar pd4ml.jar -configure.fonts c:/windows/fonts c:/work/
    In the case useTTF() API call should look like that:
    pd4ml.useTTF( "c:/work/", true );
    Test it.

    3. If the above helped, create a JAR file with chosen fonts, as described by the link above

    in reply to: pd4ml:include not working as an alternative of $[page], $[to
    #29832

    Thank you for the report. We’ll check what is wrong with the tag in inline header/footer definitions.

    in reply to: Licensing … Volume Licence vs. Enterprise version
    #29827

    Sekvoj,

    earlier today I have replied to Milan’s email with an identical question. Are you in contact with him?

    in reply to: Issue with font family on chinese characters
    #29822

    A workaround is to preprocess input HTML and to isolate CJK portions of text to separate spans.


    WENJUN Money 育暮趣所及定平関島指形由幹設 Laundering in UNITED KINGDOM IS NOT functional now

    to


    WENJUN Money
    育暮趣所及定平関島指形由幹設 Laundering in UNITED KINGDOM IS NOT functional now

    Is it doable on your side?

    #29708

    Manooj,
    glad the issue is solved on your side!

    in reply to: Why Trial version cannot generate PDF with Asian font ?
    #29714

    Please follow the instructions:
    https://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htm

    Make sure, you use PD4ML Pro trial.

    in reply to: What are restrictions of PD4ML Pro Trial Version?
    #29825

    PD4ML trial versions are fully functional, but they watermark PDF output with a “trial version” banner.

    > What benefits do we get from moving to the PD4ML Pro version?
    You may see potential upgrade benefits in PD4ML comparison chart:
    https://pd4ml.com/products.htm

    in reply to: Can I create multipe line/row header or footer?
    #27757

    The best way would be to define header/footer in HTML, i.e.:

    header.setHtmlTemplate("<font color="red"><i>page $[page] of $[total]</i></font><br>second line");

    However in text-only headers/footers ‘n’ character should break a line.

Viewing 15 posts - 226 through 240 (of 1,410 total)