Forum Replies Created

Viewing 15 posts - 661 through 675 (of 4,243 total)
  • Author
    Posts
  • in reply to: How to add page footer in asp and c#.net
    #27963

    [language=java:1waamgcy]PD4PageMark footer = new PD4PageMark();
    footer.AreaHeight = 30;
    footer.FontSize = 12;
    footer.Color = Color.Red;
    footer.setPageNumberTemplate(“Page: $[page] of $[total]”);
    footer.setTitleTemplate(“Footer – $[title]”);
    footer.TitleAlignment = PD4PageMark.RIGHT_ALIGN;
    footer.PageNumberAlignment = PD4PageMark.LEFT_ALIGN;
    footer.PageBackgroundColor = Color.WHITE;

    pd4ml.PageFooter = footer;[/language:1waamgcy]

    in reply to: Different Languages
    #27947

    Hello

    One last question. Can you please tell me the difference between PD4ML Java Library and PD4ML Java Library Pro. I went to buy now page but i was confused which one should i buy?

    Thanks a lot

    in reply to: Different Languages
    #27948

    PD4ML Std supports only Latin-1 character set. If you have to create Arabic documents of PDFs with special characters – you definitely need PD4ML Pro or any of PD4ML volume licenses.

    In order to create Arabic documents you need to utilize TTF embedding feature of PD4ML: pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.html

    in reply to: General questions / FAQ
    #26373

    Hi there,

    I am using pd4ml in a web application running on Tomcat. I use the taglibs to generate PDF out of an HTML page.

    What is the caching policy of pd4ml in that context ? Is the pd4ml cache (including CSS and images) cleared when tomcat is restarted ? Is the pd4ml cache on the disk or in memory ?

    Cheers !

    in reply to: pdf to png
    #27873

    Hi
    This link Fruit full to me i had done pdf to png .but how can i show logo? In my jsp page i had used this functionality

    but it is not displayed in mail how can i show the logo in inline mail(in pdf it’s working fine)

    in reply to: Troubleshooting
    #26402

    I notice that the page.break tags give the ability to rotate from portrait to landscape as you are changing pages. Is it possible to do the same thing with the multicolumn setting?

    I have a document that contains some sections that would really benefit from the multicolumn feature, but other sections don’t require it, so being able to switch back and forth would be really useful.

    Thanks,
    Steph.

    in reply to: General questions / FAQ
    #26393

    HI
    how can i give All rights reserved. Powered by option in footer.
    Thanks in Advance

    Regards
    Dinesh.N

    in reply to: Troubleshooting
    #26403

    I am calling the Tiff Image Loader from within a Notes agent and I’m getting this error:
    <br /> BlockElement(body) {line-height=1.2000000476837158, font-family=[Ljava.lang.String;@14031403, display=block, width=900, margin-left=10, margin-top=0, margin-bottom=8, margin-right=8, font-size=16}<br /> ContentElement(pd4content) [ ] {line-height=1.2000000476837158, font-family=[Ljava.lang.String;@14031403, display=block, font-size=16}<br /> ContentElement(pd4content) [ ] {line-height=1.2000000476837158, font-family=[Ljava.lang.String;@14031403, display=block, font-size=16}<br /> <br /> java.lang.OutOfMemoryError<br /> at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:52)<br /> at java.awt.image.Raster.createPackedRaster(Raster.java:469)<br /> at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1026)<br /> at java.awt.image.IndexColorModel.convertToIntDiscrete(IndexColorModel.java:1437)<br /> at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:194)<br /> at com.cmti.pdfgen.TiffImageLoader.readAndConvertTiff(TiffImageLoader.java:87)<br /> at com.cmti.pdfgen.TiffImageLoader.getResourceAsBytes(TiffImageLoader.java:62)<br /> at org.zefer.cache.ResourceCache.getObjectAlternativeWay(Unknown Source)<br /> at org.zefer.cache.ResourceCache.getObject(Unknown Source)<br /> at org.zefer.cache.ResourceCache.getObject(Unknown Source)<br /> at org.zefer.cache.ResourceCache.getImage(Unknown Source)<br /> at org.zefer.html.doc.n.thisvoid(Unknown Source)<br /> at org.zefer.html.doc.n.Õõ0000(Unknown Source)<br /> at org.zefer.html.doc.n.if(Unknown Source)<br /> at org.zefer.html.doc.b.b.o00000(Unknown Source)<br /> at org.zefer.html.doc.ab.o00000(Unknown Source)<br /> at org.zefer.html.doc.b.d.o00000(Unknown Source)<br /> at org.zefer.html.doc.ab.o00000(Unknown Source)<br /> at org.zefer.html.doc.Document.layout(Unknown Source)<br /> at org.zefer.pd4ml.PD4ML.o00000(Unknown Source)<br /> at org.zefer.pd4ml.PD4ML.render(Unknown Source)<br /> at com.cmti.pdfgen.PDFMaker.generate(PDFMaker.java:202)<br /> at com.cmti.pdfgen.PDFMaker.generate(PDFMaker.java:147)<br /> at com.ssatb.conotes.CategorizedController.execute(CategorizedController.java:144)<br /> at JavaAgent.NotesMain(Unknown Source)<br /> at lotus.domino.AgentBase.runNotes(Unknown Source)<br /> at lotus.domino.NotesThread.run(Unknown Source)<br /> Exception in thread "AgentThread: JavaAgent" java.lang.OutOfMemoryError<br /> at sun.misc.FloatingDecimal.developLongDigits(FloatingDecimal.java:363)<br /> at sun.misc.FloatingDecimal.dtoa(FloatingDecimal.java:561)<br /> at sun.misc.FloatingDecimal.<init>(FloatingDecimal.java:514)<br /> at java.lang.Float.toString(Float.java:193)<br /> at java.lang.String.valueOf(String.java:1479)<br /> at java.lang.StringBuffer.append(StringBuffer.java:154)<br /> at org.zefer.pd4ml.pdf.c.o00000(Unknown Source)<br /> at org.zefer.pd4ml.pdf.c.ôÒ0000(Unknown Source)<br /> at org.zefer.pd4ml.pdf.c.ÔO0000(Unknown Source)<br /> at org.zefer.pd4ml.pdf.PD4Device.startNewPage(Unknown Source)<br /> at org.zefer.pd4ml.PD4ML.o00000(Unknown Source)<br /> at org.zefer.pd4ml.PD4ML.render(Unknown Source)<br /> at com.cmti.pdfgen.PDFMaker.generate(PDFMaker.java:202)<br /> at com.cmti.pdfgen.PDFMaker.generate(PDFMaker.java:147)<br /> at com.ssatb.conotes.CategorizedController.execute(CategorizedController.java:144)<br /> at JavaAgent.NotesMain(Unknown Source)<br /> at lotus.domino.AgentBase.runNotes(Unknown Source)<br /> at lotus.domino.NotesThread.run(Unknown Source)<br />

    Assuming its a mere memory limit issue, I can try to find how to increase the heap size alolotted to a Notes client agent. If ethere’s something else I should know please do tell…

    Thx,
    -Jake

    #28052

    Yes, images with big dimensions normally require a lot of RAM and easily exceed small default JVM max heap size.

    You may override the default JVM max heap size value in notes.ini
    For example
    JavaMaxHeapSize=671088640
    or
    JavaMaxHeapSize=640mb

    The only problem is that you need to manually do the .INI changes on all client PCs.

    #28053

    that didn’t seem to make a difference. The images aren’t big and the first 2 at 48k didn’t seem to pose a problem. The 3rd, also at 48k causes the exception -even though for testing purposes it’s just a copy of the 2nd. This is what leads me to worry of a more serious leak.

    in reply to: HTML/CSS rendering issues
    #26405

    I have the following scenario.

    1) Create html content using Velocity and store as a string.
    2) Instantiate StringReader with html string.
    3) Instantiate PD4ML and call render like so:
    <br /> PD4ML pd4ml = new PD4ML();<br /> pd4ml.render(new StringReader(html), os);<br />
    in this case os is the ServletOutputStream from the HttpServletResponse object. For some reason I can’t get the CSS to be applied. I looked into adding styles and there really aren’t any examples. I tried calling

    <br /> pd4ml.addStyle(styles)<br />

    but that doesn’t seem to work. Is there anyone who has also gone this route and successfully applied CSS and if so can they provide an example?

    Thanks inadvance.

    in reply to: CSS Styles aren’t applied, can someone help me?
    #28058

    > pd4ml.render(new StringReader(html), os);

    If your CSS stylesheet is referenced from the HTML as a standalone file, probably render() method with base URL should help.

    In any case pd4ml.enableDebugInfo() should help to detect external resource loading problems.

    > pd4ml.addStyle(styles)

    The method is available only in PD4ML Pro (and derived volume licenses). Do you use Std or Pro?

    #28054

    I would expect a memory leak exposes itself a different way. Here it looks like an allocation of a huge amount of memory.

    How many bytes does com.cmti.pdfgen.TiffImageLoader.getResourceAsBytes() return for the three images?

    in reply to: Double byte support
    #27889

    Hi
    i have used , its working fine but customer based font.ttf will be changed.how can i call? This way is pain full to implement , is any other way to use this.

    in reply to: Caching policy
    #27966

    PD4ML caches images and stylesheets only in memory.

    The most recent builds allow to force PD4ML (with an explicit API call) to cache to /tmp directory. All cache files are created with deleteOnExit flag, so in non-fatal situations they are auto-deleted

Viewing 15 posts - 661 through 675 (of 4,243 total)