Forum Replies Created

Viewing 15 posts - 136 through 150 (of 4,243 total)
  • Author
    Posts
  • in reply to: General questions / FAQ
    #26245

    I have 3 environmnets, set up identically on 1 sun unix server running websphere6.1.

    I am using Pd4ml version 322

    2 of the 3 identical environments work. I am trying to figure out why the 3rd env is not working. (code is exactly the same)

    NON WORKING ENVIRONMENT:
    resource https://ebessdev2.web.com:443/images/logo90wb_black.gif not found.

    /images is a directory within my war. I have copied that .gif to different areas and they are not being rendered in the pdf no matter where i place them.

    This article i “thought” would solve the issue, howeveer the version of pd4hm i am ussing does not offer the org.zefer.cache.ResourceProvider;
    pd4ml-html-css-pdf-tips-tricks-f7/a-definition-of-custom-resource-loaders-t40.html

    I have tried refrencing these in the html and NON work.






    The HTML is stored in a database.

    The base(url) is https://ebessdev2.web.com:443, protocol https, port 443.

    Again, identical code on the same server work in 2 of 3 instances.

    Thank you for your advice!!

    in reply to: Images not working
    #27447

    > I have 3 environmnets, set up identically on 1 sun unix server running websphere6.1.

    Websphere implements SSL a proprietary way (the classes are not derived from the standard Java’s SSL classes), thus as a rule an attempt to load HTTPS resource from PD4ML in such environment causes ClassCastException. So I wonder how it works on the 2 servers.

    If the images are stored on the same server, where PD4ML runs, it makes sense to avoid any network interactions by the image loading. The best way would be to trigger useServletContext() method of PD4ML and to use absolute web paths () in the source HTML documents.

    Base URL definition most probably needs to be suppressed there.

    in reply to: Using taglib in other language than JSP or Coldfusion ?
    #27443

    You may use in your documents any HTML tag from the list:

    http://pd4ml.com/html.htm

    At the bottom of the page you may see PD4ML proprietary tags, which are available in any context (not only in JSP). As you may see is among them.

    FYI: PD4ML JSP taglib is built on the top of PD4ML API. It is only a wrapper for the API functions. For example implicitly creates PD4PageMark object, initializes it with data and passes to PD4ML.

    As long as PD4ML JSP taglib and PD4ML proprietary tags share the same namespace name (), PD4ML JSP taglib includes dummy JSP custom tag implementations for the proprietary tags. For example has, of course, no corresponding API call. It simply outputs itself “as is” to be processed by PD4ML parser.

    in reply to: Troubleshooting
    #26246

    Hi

    I am useing transform tag in jsp page
    And before running I generated pd4fonts.properties by calling converter, all thing about existing TTF file in font directory is OK.
    But in generated PDF file all National text characters converted to question mark ??????? .
    Transformation of this JSP by direct calling transformer has no problem.
    This is the result of calling transform tag in my JSP page.

    not yet in cache: http://localhost:8060/taglib/windows/fonts/pd4fonts.properties;jsessionid=303FB230FFBDDFC355F1189EDFEE4A3A
    not yet in cache: http://localhost:8060/taglib/windows/fonts/YAGUT.TTF;jsessionid=303FB230FFBDDFC355F1189EDFEE4A3A
    can not read ‘yagut’ from http://localhost:8060/taglib/windows/fonts/YAGUT.TTF: The system cannot find the path specifie
    d
    reject TTF lookup for: ‘yagut’

    in reply to: HTML/CSS rendering issues
    #26247

    It doesn’t work with euro symbols – I tried with iso-8859-1 and with UTF-8 encoding, and also using the html € – but it always displays a ?.

    Considering the large use of pdf converters for invoice matters, you should focus more on checking currency convertions…

    in reply to: Troubleshooting
    #26248

    During pdf generation inline attachments (image) doesn’t appears in the generated pdf.
    Attachments are being generated dynamically and servelt context has also been passed using useServletContext() method.

    After enabling the debug mode log displays below error:

    image not yet in cache: file:C:/serverName/xxx/xxx/xxx/xxx/xxx.action?identifier=xxx

    not yet in cache: file:C:/servername/xxx/xxx/xxx/xxx/xxx.action?identifier=xxx
    C:/servername/xxx/xxx/xxx/xxx/xxx.action?identifier=xxx (The system cannot find the path specified)

    image file:C:/servername/xxx/xxx/xxx/xxx/xxx.action?identifier=xxx has zero length.
    can not load image: ../xxx/xxx.action?identifier=xxx

    in reply to: General questions / FAQ
    #26249

    Hiii PD4ML Team,

    I have two more questions, Pls help me…..

    1) Is there any option to directly print the PDF objects generated by PD4ML through default printer?
    2) Is it possible to open as “PDF Preview mode” that is dynamically generated PDF file by PD4ML for ?

    Thanks in advance
    Yuva..

    in reply to: HTML/CSS rendering issues
    #26250

    Hi,

    is it correct that nested CSS definitions like

    .tableclass td{

    }

    are not picked up in the output pdf?

    in reply to: HTML/CSS rendering issues
    #26251

    We’re running PD4ML version 3.5.1b8.

    We have two servlets; one that generates an HTML version of a document, and a second that generates a PDF version of the document, via PD4ML. The second servlet uses the output of the first as its source.

    The HTML version of the document honors the referenced CSS, but the PDF version does not. If we remove the CSS references from the document, the HTML version looks identical to the PDF version… which leads me to believe the PDF renderer is not processing the CSS. From the logs it appears that the CSS is being loaded (see below), but we don’t see any evidence in the PDF display.

    2009-08-24 13:33:45,919 INFO [STDOUT] version: PD4ML 351b8
    2009-08-24 13:33:45,948 INFO [STDOUT] loading CSS file file:/local/ilms-apps/ilms-webres-common/css/ilms_jboss.css
    2009-08-24 13:33:45,948 INFO [STDOUT] loading CSS file file:/local/ilms-apps/ilms-webres-common/css/ilms_base.css
    2009-08-24 13:33:45,948 INFO [STDOUT] loading CSS file file:/local/ilms-apps/cps-portlet/css/portlet_cps.css
    2009-08-24 13:33:45,948 INFO [STDOUT] loading CSS file file:/local/ilms-apps/ilms-webres-common/css/ilms_print.css
    2009-08-24 13:33:46,165 INFO [STDOUT] done in 246ms.

    Does anyone have any suggestions on how to debug this?

    thanks.

    in reply to: PDF rendition appears to not honor CSS
    #27480

    Additional information…

    We’ve also tried to load the CSS via the addStyle() methods (both by passing a URL object and by passing the CSS source as a String). Neither of these attempts made any difference to the rendered PDF.

    in reply to: Euro symbol
    #27455

    try € in html it works

    in reply to: PDF rendition appears to not honor CSS
    #27481

    More information:

      We’ve removed all CSS from the source document and then tried the following:

      Added simple in-line CSS to document. This was rendered correctly by the PDF.

      Removed in-line CSS and placed same CSS in an external CSS file. This was correctly rendered when viewing the HTML, but not by the PDF.

      Tried adding the simple CSS to PDF via the addStyle() method. Had no effect on PDF.

    in reply to: PDF rendition appears to not honor CSS
    #27482

    Still more information and a question or two…

    The server on which this application is running only serves web content via HTTPS. The CSS is also servered via HTTPS, however it does not require authentication. It appears this a problem for PD4ML. If we move the external CSS to another server, which is accessible via HTTP, then the PDF correctly displays.

    If PD4ML cannot deal with HTTPS, then we could work around the issue by reading the CSS content and including it via the addStyle() method, however that doesn’t seem to work. Shouldn’t the following apply the indicated style?

    pd4ml.addStyle("p { color:red; }", true);

    For some reason it does not. Any suggestions?

    thanks.

    in reply to: Euro symbol
    #27456

    Works for me with € and UTF-8 encoding.

    in reply to: Regarding direct print through default printer & Preview
    #27459

    @yuvarajv wrote:


    1) Is there any option to directly print the PDF objects generated by PD4ML through default printer?

    I am not sure if it is possible to force Acroread browser plugin to silently print to the default printer. With some portion of embedded Javascript it is possible to popup the print dialog window and to let a user click “print” button.

    However the scripting feature is in our TODO list and not yet available.

    Acrobar Reader application allows you to force printing offline with command line parameters. See:

    http://support.adobe.com/devsup/devsup.nsf/docs/52080.htm

    @yuvarajv wrote:


    2) Is it possible to open as “PDF Preview mode” that is dynamically generated PDF file by PD4ML for ?

    Please clarify what you mean under “PDF Preview mode”

Viewing 15 posts - 136 through 150 (of 4,243 total)