Forum Replies Created

Viewing 15 posts - 76 through 90 (of 4,246 total)
  • Author
    Posts
  • in reply to: Conversion issue with Chinese characters
    #27377

    Hi,
    I’m a korean software programmer and one of your library users.
    I have a problem that I can’t see the Korean characters when I using demo version of pd4ml java library.
    is it because of demo version?
    please reply to me as soon as possile.
    thank you.

    in reply to: Conversion issue with Chinese characters
    #27378

    A solution for the missing Korean characters problem is exactly the same as for the Chinese: you need to make sure, that you use PD4ML Pro (it does not matter if that commercial or evaluation version) and TTF embedding is correctly configured:

    pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.html

    PD4ML examples pack (http://pd4ml.com/examples.zip) includes chinese_ttf sample, which illustrates the TTF embedding feature.

    in reply to: Troubleshooting
    #26228

    Having troubles getting the agent to run and generate PDF from notes client both locally and on server.

    Database copied into data directory and signed with appropriate id to run java code. Standard Windows 2000 Notes 6.5.1 installation

    error generated:

    [language=java:1l9tocbn]AGENT start.

    java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:286)
    at java.security.AccessController.checkPermission(AccessController.java:413)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:565)
    at COM.ibm.JEmpower.applet.AppletSecurity.superDotCheckPermission(AppletSecurity.java:1303
    at COM.ibm.JEmpower.applet.AppletSecurity.checkRuntimePermission(AppletSecurity.java:1180
    at COM.ibm.JEmpower.applet.AppletSecurity.checkPermission(AppletSecurity.java:1380)
    at COM.ibm.JEmpower.applet.AppletSecurity.checkPermission(AppletSecurity.java:1318)
    at java.lang.Thread.getContextClassLoader(Thread.java:1139)
    at org.zefer.cache.d.Ò00000(Unknown Source)
    at org.zefer.cache.d.o00000(Unknown Source)
    at org.zefer.cache.d.o00000(Unknown Source)
    at org.zefer.cache.ResourceCache.getObject(Unknown Source)
    at org.zefer.cache.ResourceCache.getObject(Unknown Source)
    at org.zefer.font.d.o00000(Unknown Source)
    at org.zefer.html.doc.PD4MLHtmlParser.o00000(Unknown Source)
    at org.zefer.html.doc.PD4MLHtmlParser.(Unknown Source)
    at org.zefer.pd4ml.PD4ML.o00000(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)
    at PdfAgent.generatePDF(PdfAgent.java:170)
    at PdfAgent.NotesMain(PdfAgent.java:110)
    at lotus.domino.AgentBase.runNotes(Unknown Source)
    at lotus.domino.NotesThread.run(NotesThread.java:215)[/language:1l9tocbn]

    in reply to: HTML/CSS rendering issues
    #26229

    Hello.

    I’m converting HTML source to PDF format. The HTML contains some references to a servlet that creates piechart image. It appears that PD4ML recognizes the call to the servlet in the HTML, and the debug info provides image size information about the piechart image.

    However, PD4ML reports that the image type is unknown and does not render the piechart in the PDF document. What can I do to rectify this? Find the debug information below:

    version: PD4ML 351b1 Pro (eval)

    .text { font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; text-transform: none; color: #000000; text-decoration: none}
    .bold { font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-style: normal; line-height: normal; font-weight: bold; font-variant: normal; text-transform: none; color: #000000; text-decoration: none}
    .title { font-family: Arial, Helvetica, sans-serif; font-size: 9pt; font-style: normal; line-height: normal; font-weight: bold; font-variant: normal; text-transform: none; color: #000000; text-decoration: none}
    .underlined { font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; text-transform: none; color: #000000; text-decoration: underline}
    .7pttxt { font-family: Arial, Helvetica, sans-serif; font-size: 7pt; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; text-transform: none; color: #000000; text-decoration: none}
    –>

    org.w3c.css.sac.CSSException: Encountered “.7pttxt” at line 6, column 1.
    Was expecting one of:


    “.” …
    “:” …
    “*” …
    “[” …

    ” …
    “@page” …
    “@media” …
    “@font-face” …

    at com.steadystate.css.parser.SACParser.parseStyleSheet(SACParser.java:60)
    at org.zefer.html.doc.d.d.new(Unknown Source)
    at org.zefer.html.doc.d.c.o00000(Unknown Source)
    at org.zefer.html.doc.PD4MLHtmlParser.buildDocument(Unknown Source)
    at org.zefer.pd4ml.PD4ML.super(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)
    at com.ameritrade.jasom.documentdelivery.client.mytests.TestHtmlToPdf.generatePDF(TestHtmlToPdf.java:129)
    at com.ameritrade.jasom.documentdelivery.client.mytests.TestHtmlToPdf.main(TestHtmlToPdf.java:98)
    image not yet in cache: http://xxxxxx/gifs/intellistor/F_Intellistor/F38_9-20-02.gif
    not yet in cache: http://xxxxxx/gifs/intellistor/F_Intellistor/F38_9-20-02.gif
    image size: 23878
    image not yet in cache: http://xxxxxx/gifs/intellistor/asset_allocation.gif
    not yet in cache: http://xxxxxx/gifs/intellistor/asset_allocation.gif
    image size: 583
    image not yet in cache: http://xxxxxx/servlet/xxxxxxStatementPieChart?Title=May 30, 2003&points=2.5,CASH~1.6,MM FUND~71.7,FIXED~24.2,MUTUAL
    not yet in cache: http://xxxxxx/servlet/xxxxxxStatementPieChart?Title=May 30, 2003&points=2.5,CASH~1.6,MM FUND~71.7,FIXED~24.2,MUTUAL
    image size: 1895
    image type of http://xxxxxx/servlet/xxxxxxStatementPieChart?Title=May 30, 2003&points=2.5,CASH~1.6,MM FUND~71.7,FIXED~24.2,MUTUAL is unknown.
    can not load image: /servlet/xxxxxxStatementPieChart?Title=May 30, 2003&points=2.5,CASH~1.6,MM FUND~71.7,FIXED~24.2,MUTUAL
    done in 4157ms.
    done.

    Thanks for your help with this.

    Best regards,

    -Ade Olumide

    in reply to: Testing Lotus Domino Evaluation database
    #27392

    PD4ML stores some image (for example checkbox shapes) and configuration resources in pd4ml.jar and loads them using Java class loader.

    Lotus database signing restricts some Java permissions and obviously an access to the classloader is among them. Unfortunately I cannot give you a hint what exactly needs to be (re-)configured by signing. But hopefully the direction where to look for the problem solution is more-less clear: PD4ML needs permissions to load resources with the class loader.

    in reply to: Rendering chart image in PDF
    #27393

    But what type of image does piechart actualy return? PD4ML supports by default only Web- and Java-friendly image types: GIF, PNG and JPEG

    Also “image size: 1895” log entry does not 100% mean it got an image. It still may be an error HTML message. The space characters in the image URL are possible reason of the error.

    in reply to: HTML/CSS rendering issues
    #26230

    There are major flaws in the support of CSS in the parser that comes by default with pd4ml. For instance, list-style: none attribute and value aren’t listed to for an

      tag.

      I was looking at other java parsers…is there a way to use a different parser? Why are some of these attributes supposedly “accepted” according to the css support page but really don’t render correctly?

    in reply to: CSS Issues – possible other java css parser?
    #27396

    A replacing of the parser is not a solution. It is not a big deal just to read and parse CSS or HTML. The most important thing is to render document layout, respecting the parsed styles and the document markup.

    PD4ML HTML renderer supports “the most popular” features of HTML and CSS. And the number of the features is quite big. If you dramatically need a support for some more – just send us an HTML/CSS sample. We’ll analyze and make decision to implement the missing features or not.

    Because of generic Java platform restionctions we always need to balance between feature-richness and performance.

    in reply to: CSS Issues – possible other java css parser?
    #27397

    Do you think we may be having problems because we’re streaming text into pd4ml instead of reading from a file? The stylesheet is linked via a tag in the actual HTML we stream. Should I use the API instead and add the stylesheet that way?

    Are there any known issues with CSS and streaming the content instead of reading from a file?

    in reply to: Rendering chart image in PDF
    #27394

    Your suggestions were extremely helpful.

    As it turns out, the issue was a combination of bad path information and the white space between some of the servlet parameters. Once thoses issues were resolved, PD4ML was able to resolve the chart image (which was PNG). It complained about there being an excess number of colours and then reformatted the image, but it now shows up in the PDF. Here is the new debug info:

    image not yet in cache: https://xxxxxxPieChartServlet?Title=May+30%2C+2003&points=2.5%2CCASH%7E1.6%2CMM+FUND%7E71.7%2CFIXED%7E24.2%2CMUTUAL
    not yet in cache: https://xxxxxxPieChartServlet?Title=May+30%2C+2003&points=2.5%2CCASH%7E1.6%2CMM+FUND%7E71.7%2CFIXED%7E24.2%2CMUTUAL
    image size: 5795
    can not embed https://xxxxxxPieChartServlet?Title=May+30%2C+2003&points=2.5%2CCASH%7E1.6%2CMM+FUND%7E71.7%2CFIXED%7E24.2%2CMUTUAL. PNG should not have more than 256 colors. Reformatting image…done in 5592ms.
    PDF creation done.

    Thanks a whole bunch for your help!!

    Cheers,

    -Ade O

    in reply to: Rendering chart image in PDF
    #27395

    The marked with red is a warning.

    PDF allows to embed JPEGs and some species of PNG “as is”. Transparent, interlaced, “too-multicolor” PNGs need to be reformatted to the native for PDF not-lossy image format (more-less identical to GIF). As a result PDF size grows. However it is almost not noticeable for small images.

    in reply to: Stylesheet definition results in emtpy pdf document
    #27387

    Hello again,

    could you please provide us with some information regarding the issue descripted above? We are really interested in buying your product as soon as we can exclude that our customers could ran into trouble with their self-defined stylings. It would be no problem for us if the issue above turned out to be a bug as long as it will be fixed in the near future.

    Regards,
    Matthias

    mil
      in reply to: Stylesheet definition results in emtpy pdf document
      #27388

      Sorry for posting the message above as a guest and for the mistake: descripted -> described.

      Regards,
      Matthias

      in reply to: Supported platforms
      #27226

      Hi, we are getting trouble trying to generate the pdf on AS400.

      We already tryed on two differentes environments and we are getting the same trouble.

      We have java version 1.4.2. When we try to execute, pd4ml create the file with 0kb and an exception is giving to us(executing in the prompt). See the attached file.

      in reply to: Stylesheet definition results in emtpy pdf document
      #27389

      Sorry for the delay with the reply.

      @mil wrote:

      we have a problem in conjunction with the definition of stylesheets. Currently we set the stylesheet file via call to PD4ML.addStyle(), e.g.
      [language=java:2kj4szg5]pdfCreator.addStyle(someUrl, true);[/language:2kj4szg5]

      We define the page header using the method PD4ML.setPageHeader(somePD4PageMark).

      We use PD4PageMark.setHTMLTemplate(someHTML) to set the HTML content.

      addStyle() method impacts only the main document and headers/footers defined inline (with tag, for example)

      First of all: Does “someHTML” have to be valid HTML, that means does it have to contain tags like “” or ““?

      Yes, if you need to specify a style to a header or footer defined API- way, “someHTML” should contain all the , , tags and a style section or a reference to an external stylesheet. Unfortunately it cannot inherit style of the main document.

      After that, we render the page using the method PD4ML.render(someURL, someStream);

      The problem concerning the stylesheet definition now is as follows:
      The stylesheet file contains the following style definition:

      body {
      background-color: white;
      font-family: Arial,Helvetica,Geneva,sans-serif;
      }

      The resulting pdf document only contains the header, but not the content retrieved by call to PD4ML.render(). (We found out that the content somehow gets painted over by the background-color.)
      After removing “background-color: white” out of this style definition, everthing works fine. As our customers can define their own styles for their printings, we cannot assure that a customers won’t create a stylesheet we ran in problems with. Could you please instruct us how to prevent that issue?

      It seems to be a bug in our code. In the most recent betas of v351 we addressed a similar issue. By the way, which PD4ML version do you use? You may check that if you open a generated PDF in Acroread and inspect File->Properties->Application

    Viewing 15 posts - 76 through 90 (of 4,246 total)