Forum Replies Created

Viewing 15 posts - 3,001 through 3,015 (of 4,246 total)
  • Author
    Posts
  • in reply to: Why Trial version cannot generate PDF with Asian font ?
    #29714

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

    Make sure, you use PD4ML Pro trial.

    #29708

    Manooj,
    glad the issue is solved on your side!

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

    Hi,

    thank you for your solution. Would like to know,

    Whether we have any workaround without upgrading the library, we are using the v397 licenced version and not easy to change the JAR again. Do we have any workaround where we can solve this.

    we really appreciate your support, please give us some suggestions how we can fix this

    Regards
    Sarin

    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?

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

    thanks for your support
    we have changed it to call this function before showing the content

    import java.util.regex.Matcher;
    import java.util.regex.Pattern;

    public class CJKFinder {

    public static void main(String[] args) {
    String str = ” 育暮 1 Great Work M R 12 13 14 育暮趣所及定平関島指形由幹設世戸 122 育暮趣所$及定平関 島指形由幹設世戸 hello. aiguë διαίρεσις”;
    System.out.println(applyCJKStyle(str));
    }

    public static String applyCJKStyle(String text){
    Pattern pattern = Pattern.compile(“([u4E00-u9FFF]{1,})”);
    Matcher matcher = pattern.matcher(text);
    StringBuffer output = new StringBuffer();
    while (matcher.find()){
    matcher.appendReplacement(output, “$1“);
    }
    matcher.appendTail(output);
    return output.toString();
    }

    }

    in reply to: General questions / FAQ
    #27043

    Hello there,
    I need VolumeLicence (only Java) for 10 developers. Is it correct when I buy VolumeLicence Enterprise version (8000 EUR) for unlimited deployment workstations? Or do I need 10x VolumeLicence – each for 1400 EUR?

    I tried to find it in licence description but I did not find it exactly described.

    Thank You for your help.

    Sekvoj

    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: Convert ASP.Net page with Java Applet forms authentication
    in reply to: Table rendering issue with cells containing empty <p> tags
    #29739

    The fix released with version PD4ML Pro 3.9.7 works fine for the first table of the provided example.

    But the second table still sizes strange:
    The last column only contains empty tags but occupies half of the table width while the text of the second column has to be wrapped.

    in reply to: pdf to png
    #27875

    @dineshvn wrote:

    Hi
    will it possible to
    convert pdf to png format i have to send embedded image in mail

    Thanks in Advance
    Regards
    Dinesh.N

    Hi, Dinesh.N.
    I wonder have you ever found a simple way to
    convert pdf to png? I am also looking for it. Any suggestion will be appreciated. Thanks in advance.

    Best regards,
    Pan

    in reply to: HTML/CSS rendering issues
    #27044

    Hi, does not seem to work when used as an alternative of $[page], $[total] and $[title]

    With this example:

    page: total: $[total]

    Output is:

    page:
    total: 1

    I am using the latest version: PD4ML 398fx1 Pro

    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: General questions / FAQ
    #27045

    Hi Team

    when we have upgraded the pd4ml to 397 issue, we are having a small issue now. When we have a registered sign, its coming properly in page, but in the bookmark, seeing the text with invalid characters

    For example,

    test®

    can be seen in the page, but its coming with invalid characters

    Please help me how to resolve this,

    we have the code
    pd4ml.useTTF(“java:defaultfonts”, true); in our application

    Regards
    sarin

    in reply to: Deployment / Configuration issues
    #27046

    Hi, We have the following workflow for generating and storing the PDF

    1. create PDF
    2. Load ByteArray and store it as BLOB in database.
    3. User comes to website and tries to access PDF.
    4. PDF sent in response stream.

    We are facing a weird issue where the file created from PD4ML when opened with Adobe loads the PDF perfectly fine. But if we store the file as byte[] in database and try accessing it from database the PDF loads but none of the images gets displayed in PDF.

    Styling is present, only the images are missing.

    <br /> ByteArrayOutputStream baos = new ByteArrayOutputStream(4096);<br /> PD4ML pd4ml = new PD4ML();<br /> pd4ml.interpolateImages(true);<br /> pd4ml.enableDebugInfo();<br /> pd4ml.setHtmlWidth(850);<br /> pd4ml.addStyle("BODY {margin: 0}", true);<br /> pd4ml.setPageInsets(new Insets(0, 0, 0, 0));<br /> pd4ml.fitPageVertically();<br /> pd4ml.overrideDocumentEncoding("UTF-8");<br /> <br /> pd4ml.setPermissions("empty", PD4Constants.AllowPrint, true);<br /> pd4ml.setPermissions("empty", PD4Constants.AllowModify, false);<br /> pd4ml.setPermissions("empty", PD4Constants.AllowCopy, true);<br /> <br /> pd4ml.render(new StringReader(htmlCode), baos);<br /> byte[] bytes = baos.toByteArray();<br /> ############<br /> # Store bytes in DB<br /> ############<br /> <br /> <br /> <br /> ############<br /> # Servlet<br /> ############<br /> response.getOutputStream().write(byte[]/* from database.*/);<br /> response.setContentType("application/octet-stream");<br /> response.setHeader("Content-Disposition","attachment;filename=file.pdf");<br />

    in reply to: HTML/CSS rendering issues
    #27047

    We are switching from Java 6 to 8 thereby we noticed that with the new Java version all zero-width-space characters are printed in PDF files.
    See attached example files to see the difference – input for both files is the same only the Java version is different.

    Seems that the switch from Unicode 4.0 to Unicode 6.0 in Java 7 is affecting the PD4ML library (https://josm.openstreetmap.de/ticket/8918).

Viewing 15 posts - 3,001 through 3,015 (of 4,246 total)