Forum Replies Created

Viewing 15 posts - 2,686 through 2,700 (of 4,243 total)
  • Author
    Posts
  • in reply to: General questions / FAQ
    #26947

    Hello all,

    I have used PD4ml to convert html file to pdf but if below mentioned line it will detect then it will display html code in pdf i.e span, font etc.

    Do anyone has solution to this. As this text user has kept into editor so I don’t have control to this. Any help is appreciated.

    Thanks in Advance

    in reply to: PDF conversion of particular HTML file is not proper
    #29565

    In your HTML syntax you use ’ which is not allowed in the context.

    Actually ’ (apostrophe; notice it’s curly!) and a single quote (‘ – straight) are different symbols, but many word processors strive to auto-substitute ‘ with an apostrophe char.

    I would recommend just to replace ’ with ‘ :

    in reply to: HTML/CSS rendering issues
    #26949

    I’ve been testing pd4ml in version 385fx6 where writing-mode was working like posted in: http://pd4ml.com/support/html-css-to-pdf-rendering-issues-f3/css-text-rotation-t399.html

    But I noticed an Adobe error in v3.90, and in the most recent one (v3.91) is the Adobe error fixed, but isn’t any text shown.

    Is this something you will fix in the near future, or are their other options available?

    in reply to: HTML/CSS rendering issues
    #26950

    Hello PD4ML!

    I met issue when I coverting a lot of file to PDF .First running, it’s very quickly.but when I running again, you know ,it’s slowly.

    my code is in the below

    public class PD4MLUtil {

    protected static int topValue = 10;
    protected static int leftValue = 20;
    protected static int rightValue = 10;
    protected static int bottomValue = 10;
    protected static int userSpaceWidth = 1300;

    /**
    *
    * @param in StringReader
    * @param outputPath
    * @throws InvalidParameterException
    * @throws MalformedURLException
    * @throws IOException
    */
    public static void doConversion(StringReader s, String outputPath)
    throws InvalidParameterException, MalformedURLException,
    IOException {
    File output = new File(outputPath);
    FileOutputStream fos = new FileOutputStream(output);

    PD4ML pd4ml = new PD4ML();

    pd4ml.setHtmlWidth(userSpaceWidth); // set frame width of
    // “virtual web browser”

    // choose target paper format and “rotate” it to landscape
    // orientation
    pd4ml.setPageSize(pd4ml.changePageOrientation(PD4Constants.A4));

    // define PDF page margins
    pd4ml.setPageInsetsMM(new Insets(topValue, leftValue, bottomValue,
    rightValue));

    // source HTML document also may have margins, could be suppressed
    // this way
    // (PD4ML *Pro* feature):
    pd4ml.addStyle(“BODY {margin: 0}”, true);

    pd4ml.enableDebugInfo();
    // If built-in basic PDF fonts are not sufficient or
    // if you need to output non-Latin texts,
    // TTF embedding feature should help (PD4ML *Pro*)
    pd4ml.useTTF(“java:fonts”, true);
    pd4ml.setDefaultTTFs(“Times New Roman”, “Arial”, “Courier New”);
    pd4ml.render(s, fos); // actual document conversion from URL
    //System.out.println(outputPath + “ndone.”);
    fos.close();
    }

    }

    my log in the below

    2014-09-18 11:20:05,745 [INFO] ==== ekp_quartz_thread-pool-7-thread-3: com.landray.kmss.sys.lbpmgs.service.imp.SysPdfExecuteTempServiceImp.execute(52)
    begining

    version: PD4ML 381fx2 Pro (eval)
    loading CSS file file:/ekp/resource/style/common/jquery-ui/jquery.ui.css?s_cache=1411009156978
    not yet in cache: file:/ekp/resource/style/common/jquery-ui/jquery.ui.css?s_cache=1411009156978
    /ekp/resource/style/common/jquery-ui/jquery.ui.css (No such file or directory): file:/ekp/resource/style/common/jquery-ui/jquery.ui.css?s_cache=1411009156978
    loading CSS file file:/ekp/sys/attachment/view/img/upload.css?s_cache=1411009156978
    not yet in cache: file:/ekp/sys/attachment/view/img/upload.css?s_cache=1411009156978
    /ekp/sys/attachment/view/img/upload.css (No such file or directory): file:/ekp/sys/attachment/view/img/upload.css?s_cache=1411009156978
    loading CSS file file:/ekp/sys/attachment/js/popup.css
    not yet in cache: file:/ekp/sys/attachment/js/popup.css
    /ekp/sys/attachment/js/popup.css (No such file or directory): file:/ekp/sys/attachment/js/popup.css
    done in 290587ms.
    2014-09-18 11:24:56,333 [INFO] ==== ekp_quartz_thread-pool-7-thread-3: com.landray.kmss.sys.lbpmgs.service.imp.SysPdfExecuteTempServiceImp.execute(57)
    ending

    you see ! It’s over 4 minutes, but first running ,this file is only hundred of ms

    so leading to the issue that if I‘m ignore something.

    in reply to: A large number of html file covert to pdf issue
    #29576

    Hello PD4ML,can you give me any suggestion

    in reply to: A large number of html file covert to pdf issue
    #29577

    Hmm… Usually 1st request takes some longer (as Java classes need init time etc), after that it should work quicker.

    1. Make sure the application has enough heap size. A JVM parameter -Xmx512m usually works fine.

    2. Try to run v391. It reports now latencies by a loading of external resources, so you’ll be able to locate a slow responding one (if any), or at least to exclude “network delay” as a problem reason.

    in reply to: Vertical text writing-mode:tb-rl not working 3.9
    #29571

    Just tested with v391 a code snippet from
    html-css-to-pdf-rendering-issues-f3/css-text-rotation-t399.html – works fine, no errors.

    Could you please provide more info, source HTML, generated PDF, screenshots etc?

    in reply to: HTML/CSS rendering issues
    #26955

    Hi, i am using a row as line separator for one of my documents. It is roughly like this
    <br /> <tr><br /> <td height="1" bgColor="red"></td><br /> </tr><br />

    I am using this in several places. But each separator renders in pdf with different height (thickness). Kindly suggest on what needs to be done for consisitency

    in reply to: Vertical text writing-mode:tb-rl not working 3.9
    #29572

    I was using the writing mode on the first row off a table, and in the generated pdf’s the columns with the writing mode where empty.
    This wasn’t caused by pd4ml but by me for using the writing-mode on a div inside a table, which results in the first column being 1001px height ( in IE11). What I can understand would be difficult for PD4ml to convert to pdf. After applying the writing mode to the td the height went normal and the PDF looked like 3.85fx6 again.

    Thanks for the help.

    in reply to: HTML/CSS rendering issues
    #26951

    I am testing the Pro Trial version with font “Ming(for ISO10646)”. I added the font in the mapping file but the exported PDF showed “?” for chinese characters.

    From the debug info, noticed that it was looking for the mapping of the mingliu font. So, I added the mapping for mingliu pointing to the ttf file of Ming(for ISO646). Upon export, the chinese characters were exported properly. But the english characters using ming iso font were using a default font I think. Is it hardcoded that chinese characters use mingliu font?

    From the html, all the text were inside a span element with style=”font-family: Ming(for ISO10646); font-size: 12pt;”

    Also, please advise if there is a plan to support TTC files. In the mapping, we can use “mingliu.ttf=ming.ttc,0”, the number is the index of the font in the ttc file.

    in reply to: Chinese font handling
    #29578

    I would recommend to generate pd4font.properties automates, as described by

    http://pd4ml.com/reference.htm#7.1
    pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.html
    http://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htm

    It should create correct mapping, including for TTF collections (.ttc).

    I am not 100% sure if ‘(‘ and ‘)’ does not confuse in font names. Probably it is a good idea to rename the font in the .properties from “Ming(for ISO10646)” to “MingISO10646″ and refer it from the HTML/CSS like

    style=”font-family: MingISO10646; font-size: 12pt;”

    If after that it still does not work, please collect the debug output and send (or publish it here) to support pd4ml com. The font file, source HTML and resulting PDF would help a lot if you send it as an attachment as well.

    in reply to: Chinese font handling
    #29579

    Thank you for your reply. It worked after updating to remove ‘()’ from the font name in the input html and mapping file. With this, will the PD4ML library be updated such cases? Thanks.

    in reply to: Troubleshooting
    #26957

    I tested the lotus notes agent for generation of a pdf from a lotus email with attachment. The filename of the attachment was not displayed below the attachment icon. But it seems the filename still occupies space. Please advise if any update on the xsl or generated html is needed. Thanks.

    in reply to: Attachments in generated PDF
    #29584

    Sometimes attachment icons, come from Lotus Notes, are too wide (a lot of blank space left and right). In the case we can do nothing with it.

    Try to single click over the icon to highlight it and to be sure it is (not) your case.

    If is is not your case, please send issue details and file samples to support pd4ml com

    in reply to: HTML/CSS rendering issues
    #26958

    Hi, hopefully this is a simple one. We have a lot of table based content that contains

    tags rather than header rows to indicate the purpose of a table.

    When publishing a pdf from a html page containing tags, we’re finding that the tags aren’t being displayed in the resulting pdf. I might have missed something in the documentation, but is this tag supported / am I doing something wrong?

    A simple example would be:

    My Caption
    Heading Data

    which publishes the

    and

    , but not anything inside the

    .

    Thanks!

Viewing 15 posts - 2,686 through 2,700 (of 4,243 total)