Forum Replies Created

Viewing 15 posts - 316 through 330 (of 1,410 total)
  • Author
    Posts
  • #29245

    I am afraid, a streamed or serialized HTML-to-PDF conversion is not possible – a document must be rendered in memory completely before it is converted to PDF. There is always a possibility that at the end of a document there is an HTML tag or a content portion, which would require a complete document re-layouting.

    in reply to: P tag "interline" problem
    #29674

    Probably a removal of paragraph margins completely is not always a good idea. You could define/override styles only for particular cases, for example:

    P + P, DIV + P { margin-top: 0 }

    resets top margin, only if a paragraph follows other paragraph or DIV

    in reply to: How to embedd PDF?
    #29669

    Try

    <pd4ml:attachment description="attached.txt"
    src="data:base64,YSxiLGMsZCxlDQp2YWx1ZSAxLCB2YWx1ZSAyLCB2YWx1ZSAzLCB2YWx1ZSA0"/>

    in reply to: Trouble understanding differencies between Linux and Windows
    #29624

    In the next version it will suppress the version-, JVM- and OS- specific info when a document ID is overridden with System.setProperty(“pd4ml.document.id”, “…..”) call.

    Normally we publish monthly maintenance updates. The most recent release was few days ago. I expect a new version is to be available close to the middle of March.

    in reply to: Fit image bu width or height
    #29671

    I am afraid percentage height values are not supported. In PDF generation context not always obvious what should be taken as a basis to calculate relative height.

    For example:

    <body>
    <img alt="Image from the forum topic: Fit image bu width or height" src="pic.png" height="100%">
    </body>

    In the case image height depends on HTML body height, but html body height depends on image height.

    in reply to: Add/remove header or footer on fly
    #29670

    It is possible to override header and footer with blank ones in-place:

    <h1>Header</h1>
    
    
    <h1>Footer</h1>
    
    <div>CONTENT</div>
    <!-- reset header and footer; takes effect after a page break  -->
    
    
    
    <img alt="Image from the forum topic: Add/remove header or footer on fly" src="../attachment.jpg" />

    or to apply header/footer to particular page ranges with scope attribute of and

    in reply to: Problems with bullets in list, RTF file
    #29663

    Just-released v395 should solve the issue.

    in reply to: Trouble understanding differencies between Linux and Windows
    #29622

    To decompress entire PDF you may use
    http://sourceforge.net/projects/multivalent/

    java -Xmx192m -cp Multivalent20060102.jar tool.pdf.Uncompress -exact file.pdf

    If a particular page is needed to be decoded:

    PD4Document doc1 = new PD4Document(new URL("file.pdf"), password);
    String content = doc1.getPageContent(1);

    For the time being it is not possible to disable JDK/OS diag output. But we could add the switch in the next versions.

    in reply to: HTML special char not print with the newest Pd4ml 394v
    #29665

    The problem reason is that recent PD4ML versions are more strict by character encoding conversion.

    ISO-8859-1 (also called Latin-1) is identical to Windows-1252 (also called CP1252) except for the code points 128-159 (Š = 138). ISO-8859-1 assigns several control codes in this range. Windows-1252 has several characters, punctuation, arithmetic and business symbols assigned to these code points.

    As I see you use Windows-1252 as default; PD4ML relies on ISO-8859-1.

    A general solution for that type of issues is to utilize TTF embedding feature of PD4ML.

    As long as you run DMS edition of PD4ML, the easiest workaround would be to enable PDF/A generation mode (make sure pd4ml_rc.jar is in the same directory with pd4ml.jar) with pd4ml.generatePdfa(true) API call.

    in reply to: automatic scaling feature is not working
    #29659

    Could you please publish an HTML code snippet and its PDF result to illustrate the issue?

    BTW: have you tried v3.9.4?

    in reply to: Can add new line in the footer
    #29649

    Try to increase areaHeight value:

    <pd4ml:footer areaHeight="18" >

    in reply to: Hyperlink doesn’t have any effect on mouse over using pd4ml
    #29657

    Is it a question of a link highlighting?
    Does the link work if you click over TestLink?

    in reply to: Hyperlink not showing in PDF while mouse over on link text
    #29656

    Please publish a minimalistic PDF sample, which illustrates the issue.

    in reply to: Can add new line in the footer
    #29647

    If you define a text-only (non-HTML) footer with PD4ML API calls, a line break character (“n”) should help.

    For footers, defined with HTML it can be done by a usual for HTML way:
    , etc.

    in reply to: Wrapped Up URL in PDF – How to make it work
    #29650

    Obviously the issue is a specifics of “Create links from URLs” feature of Acroread.

    If it is enabled, Acroread scans a loaded document for strings, look like URLs, and turns them into hyperlinks.

    For example, a code
    http://server/path/doc.htm

    is turned into a link, even it is a plain text for a web browsers.

    Unfortunately the feature is not clever enough, to recognize line-broken URL strings.

    A workaround would be to define c regular hyperlink, using HTML means:
    http://server/path/doc.htm

    PD4ML should convert such code correctly even with very long URLs.

Viewing 15 posts - 316 through 330 (of 1,410 total)