Forum Replies Created

Viewing 15 posts - 3,331 through 3,345 (of 4,243 total)
  • Author
    Posts
  • in reply to: pd4ml:footnote with noref
    #29970

    That was my reply, was not logged in.

    in reply to: Header is ok, body is failing showing question marks
    #29977

    Hi,

    I attached a sample of the problem we were able to recreate by chance.
    As you can see, some are rendered as question marks, some are corrrectly rendered in chinese.

    additionally this does not happen frequently. most of the time everything is in order (rendering).

    our working hypothesis that if the server slows down due to usage it affects the rendering.

    Is there any solution that can resolve this?
    We have our doubts on adding a new font in the properties file will work:

    SimSun=arialuni.ttf

    appreciate on any advise on the matter. thanks!

    in reply to: Troubleshooting
    #27116

    I’m testing your conversion library to convert HTML file to RTF but when the HTML files contain images the conversion generates a huge RTF files.
    In our testing we try to convert a html file like

    green

    • 1
    • 2

    The image file size is 6KB, but the RTF result file size is 210KB…
    is this the normal behaviour?

    in reply to: HTML to RTF conversion produces huge files
    #29978

    Do you convert to RTF or to RTF_WMF mode?

    RTF_WMF for wordpad.exe compatibility converts image bytes to WMF format, which causes a significant size grow of resulting RTF.

    in reply to: HTML to RTF conversion produces huge files
    #29979

    I use RTF_WMF, because if i use RTF thene image is not transfered to the result file.
    Is there any way to add the image in the source compression format instead of convert it to WMF format?
    I have tested to create the final result using “wordpad” and the result file size is 70KB.

    in reply to: HTML to RTF conversion produces huge files
    #29980

    > if i use RTF thene image is not transfered to the result file.

    In fact the images are there, but can only be displayed by MS Word (and may be some other viewers).

    > I have tested to create the final result using “wordpad” and the result file size is 70KB.

    It can also be, Wordpad downscales the image with a detailization loss. But we’ll check the RTF spec if there are compression options for such images available, supported by the major viewers.

    in reply to: ClassCastException with endless loop in PDF page generation
    #29934

    The issue is solved with 3100. Thank you!

    in reply to: EmptyStackException in 399 fx2 on floated online-blocks
    #29963

    The issue is solved with 3100. Thank you!

    in reply to: "Print Ready" PDFs?
    #29545

    Is there any update to this. Facing same challenge.

    in reply to: General questions / FAQ
    #27117

    Hi All,

    Following is my scenario.

    I have 3 HTML contents that are merged into 1 wrapped HTML and this wrapper HTML is converted to pdf document using pd4ml.

    Out of the 3 smaller HTMLs, 1st one is a dynamically expandable content based on what user inputs other 2 HTMLs are static content(forms).

    Our printers are dual page printers.

    Now the 2nd and 3rd HTML content need to be printed on separate pages meaning they need to start on “odd” page numbers,so that when pdf is printed, the 2nd and 3rd HTML contents do not print on back side(even page) of each other or the back side of the last page of 1st HTML.

    Everything works fine when the 1st HTML content comes up to even pages, when 1st HTML content comes to odd page, the 2nd HTML is printing on odd page(back side) of the 1st HTML’s last page.

    I am using after the 1st HTML, does not seem to work.

    Also another requirement is we only need to display page number on 2nd HTML.

    Any help is appreciated.

    Thanks.

    in reply to: Newbie question: How to page break
    #27867

    @tpdietz wrote:

    Thanks for the reply. Unfortunately, using also causes our processor to barf. I’ve got a workaround in the Java code, but I would have preferred not to have to go that route. But, at least it works.

    Thanks again.

    Will you able to share the java code that fixed your issue.

    in reply to: Issue with page break
    #29981

    It seems there is a clash of even/odd alignment and suppression of trailing blank pages logic. We’ve just resolved it in the DEV build.

    Regarding the page numbering: try to place the following header (or footer) definitions before opening tag.

    [language=xml:10vzfnu4]

    Page $[page] of $[total]
    [/language:10vzfnu4]

    in reply to: General questions / FAQ
    #27118

    Hello,

    I am using PD4ML in .net. i have applied watermark in my PDF but i want to remove watermark from first page of pdf.

    footer.InitialPageNumber = 2;
    footer.PagesToSkip = 1;
    //PD4PageMark watermark = new PD4PageMark();
    footer.setWatermark(
    // watermark image location URL.
    // For local images use “file:” protocol i.e. “file:images/logo.png”
    watermark,
    // watermark image position
    new Rectangle(((792 – WaterMarkWidth) / 3), 300, WaterMarkWidth, WatermarkHeight),

    // watermark opacity in percents
    40);

    I am using this code, please advice me how to skip watermark for first page.

    Thanks in advance.

    in reply to: Troubleshooting
    #27119

    Hello,

    I am using PD4ML in .net. i have applied watermark in my PDF but i want to remove watermark from first page of pdf.

    footer.InitialPageNumber = 2;
    footer.PagesToSkip = 1;
    //PD4PageMark watermark = new PD4PageMark();
    footer.setWatermark(
    // watermark image location URL.
    // For local images use “file:” protocol i.e. “file:images/logo.png”
    watermark,
    // watermark image position
    new Rectangle(((792 – WaterMarkWidth) / 3), 300, WaterMarkWidth, WatermarkHeight),

    // watermark opacity in percents
    40);

    I am using this code, please advice me how to skip watermark for first page.

    Thanks in advance.

    in reply to: Skip watermark for specific page
    #29982

    It is not possible with the watermarking feature. But you can achieve something visually identical with page background images.

    Try to override getPageBackgroundImageUrl(int pageNumber) method as it is done for getHtmlTemplate() method in the code snippet below (implementing the logic you need):

    [language=java:2rrc4msf]PD4PageMark footer = new PD4PageMark() {
    public String getHtmlTemplate(int pageNumber) {
    if ( pageNumber % 2 == 0 ) {
    return “some left aligned stuff…”;
    } else {
    return “some right aligned stuff…”;
    }
    }
    };
    pd4ml.setPageFooter(footer);[/language:2rrc4msf]

Viewing 15 posts - 3,331 through 3,345 (of 4,243 total)