Forum Replies Created

Viewing 15 posts - 91 through 105 (of 1,410 total)
  • Author
    Posts
  • in reply to: Free CJK Fonts
    #30046

    You may use free FontForge tool to convert OTF to TTF.

    If you familiar with Python programming, you may also use the simple script
    https://github.com/fonttools/fonttools/blob/master/Snippets/otf2ttf.py

    in reply to: pd4ml transform tag renders weird characters
    #30030

    You published as “response” returned HTTP content, which looks correct.

    HTTP server also sends so-called “HTTP Header”, which should have “Content-type: application/pdf” entry.

    Your JSP code also seems to be ok. So first I would suspect your web application has a config mapping “JSP -> plain/text”, and the configuration overrides “Content-type: application/pdf” set by PD4ML taglib.

    in reply to: Why is the HTML entity Α rendered as a ?.
    #30038

    Have you configured/enabled “TTF Embedding” feature? By default PD4ML supports only Latin-1 charset of built-in Acroread fonts.

    in reply to: pd4ml transform tag renders weird characters
    #30027

    It is not about charset / character encoding.

    Your webapp should send “Content-type: application/pdf” with HTTP response.

    PD4ML taglib implicitly sets the correct HTTP header. (Do you use PD4ML taglib?)
    It your case it seems to be overridden with “Content-type: text/plain“.

    in reply to: Have mirrored margins been implemented yet?
    #30036

    The feature is to be supported by the forthcoming PD4ML v4

    #30034

    If you define headers/footers via API, try to define not only HTML snippet, but a valid HTML doc:

    header.setHtmlTemplate("<html><head><link rel="stylesheet" type="text/css" href="mystyle.css">" +
    "</link><body>page $[page] of $[total]</body></html>")

    in reply to: Generated pdf with watermark file size is too big
    #30022

    It depends on the image type you use as a watermark.

    GIFs or some species of PNG cannot be embedded to PDF “as is” and has to be converted to PDF native image format which is in fact a gzipped sequence of pixel color values. The PDF image format requires significantly more space for storing pictures (comparing to GIF, PNG etc).

    Try to use JPEGs (even with high quality settings) as watermarks.

    in reply to: how to show background image in full size of page
    #30014

    You are right. In C# it can be done slightly different:

    pd4ml.PageHeader = footer;

    in reply to: Rendering through jsp tags
    #30011

    In an ideal situation the taglib should work correctly without any tuning/adjusting. You only need to enclose your HTML document to opening and closing tags.

    If relative links are not resolved, add debug=”true” attribute to the transform tag and inspect the server’s log for diagnostics info.

    in reply to: pd4ml ignores images behind a http redirect
    #30015

    The forthcoming PD4ML v4 should solve the issue.

    If a maintenance period of your license has not been expired yet we could consider to add the missing redirect feature to PD4ML v3.10.2

    in reply to: MetaData are ignored
    #30008

    /**
    * The method defines custom properties for PDF document meta data. The method takes effect only in PD4ML Volume DMS and PD4ML SRC license binaries.
    * @param key a unique name, which must not be one of the standard property names Title, Author, Subject,
    * Keywords, Creator, Producer, CreationDate, ModDate and Trapped
    * @param value data itself
    * @param hide makes the metadata not appear in the PDF document properties dialog of Acroread
    */
    public void addMetadata(String key, String value, boolean hide) {
    ...

    There are dedicated API methods pd4ml.setAuthorName() and pd4ml.setDocumentTitle() could help you to workaround.

    Also you can try to post-process generated PDFs with PD4Document/PD4DocumentBase API.

    in reply to: how to show background image in full size of page
    #30012

    You may define a page background with the API call:

    PD4PageMark footer = new PD4PageMark();
    // footer.setPageBackgroundColor(Color.green);
    footer.setPageBackgroundImageUrl("file:i/background.jpeg");
    pd4ml.setPageFooter(footer); // or setPageHeader() - both methods are ok

    in reply to: pdf’s Table right margin and the content is missing
    #29996

    PD4ML Probe is usually bundled with one of the recent versions of PD4ML.

    PD4ML v3.9.5 is more than 2 years old and based on older CSS runtime.
    I would recommend to try the newest PD4ML version.

    in reply to: enableSmartTableBreaks in RTF
    #29997

    Just published v3.10.1 implements the feature.

    in reply to: Duplex printing
    #30002

    > each source HTML document starts a new PDF page; there is no way to continue half-blank page with a new doc.

    Yes, you are right. There are some tech reasons for that in the current v3.x. If you are sure, there is no style intermixes, try to merge the HTML portions to a single HTML doc before it is passed to PD4ML. Just take into account: a closing or tag stops further HTML parsing, so it makes sense to remove any instances of the closing tags if they are not at the end of the resulting HTML.

    Proprietary could help you to prepare a document for duplex printing. The page break tag inserts a blank page if needed to fulfill the “next” condition.

Viewing 15 posts - 91 through 105 (of 1,410 total)