Forum Replies Created

Viewing 15 posts - 151 through 165 (of 4,249 total)
  • Author
    Posts
  • in reply to: PDF rendition appears to not honor CSS
    #27483

    Oficially PD4ML does not support HTTPS, however on practice it tries to load HTTPS resources with Java’s standard SSL classes.

    WebSphere and Weblogic, for example, and may be some others implement their own SSL libraries, not derived from Java’s standard one. As a result it causes ClassCastException. As I see, it is not your case, but there may be other SSL protocol related issues, specific for your environment.

    The best workaround for the HTTPS issue is not to use HTTPS for CSS or image references. It is expensive from the performance perspective and causes undesired network transactions. A better approach is to reference the resources with relative links.

    If your source HTML documents are read-only and you are not allowed to change HTTPS URLs there, there is also a solution with custom resource loaders. You may implement your own one and to use any SSL library you like:

    pd4ml-html-css-pdf-tips-tricks-f7/a-definition-of-custom-resource-loaders-t40.html

    Regarding pd4ml.addStyle(“p { color:red; }”, true); – it always worked. We’ll check it once more – probably there are some newly introduced “code optimization issues” in the recent builds.

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

    Thank you for the update.

    We typically do reference the CSS external files via relative URLs. It’s curious, because the images are also loaded via unauthenticated SSL, but they always seem to render in the PDF. There also seems to be some sort of caching at play, which is very frustrating. I’ve disabled the PD4ML cache with:

    HashMap map = new HashMap();<br /> map.put("pd4ml.cache.enable","false");<br /> pd4ml.setDynamicParams(map);

    I’m testing with both IE v7 an FF 3.5.2.

    I’ll try the custom resource loader.

    in reply to: Nested CSS definitions not rendered
    #27464

    Pd4ML does support CSS selectors like “.tableclass td”. Among the supported CSS selector types are the following:

    • * Universal selector
    • E Type selectors
    • E F Descendant selectors
    • E > F Child selectors
    • E:first-child The :first-child pseudo-class
    • E + F Adjacent selectors
    • E[foo] Attribute selectors
    • E[foo=”warning”] Attribute selectors

    If for some reason it does not work for you, I would check if CSS properties (in your message they are substituted with “…”) are supported by PD4ML. See the list of supported CSS properties: http://pd4ml.com/css.htm

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

    FYI: addStyle() works only with PD4ML Pro binaries.

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

    Success!!

    Using the custom resource provider worked. The resource string that is passed into the class is formatted as “file:/local/somedir/test.css”, which might work on a Windows box, but doesn’t appear to work on our Unix box. We had to expand to a full URL and then it reads the CSS successfully.

    May I suggest that the javadocs include something that indicates which methods are active for the standard versus professional versions.

    Thanks for the help.

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

    @dvanwest wrote:

    May I suggest that the javadocs include something that indicates which methods are active for the standard versus professional versions.

    PD4ML javadoc includes the info in method description details. Probably a separate document (a kind of PD4ML API method chart) with explicit Pro or Std marks is not a bad idea. I added the request to our TODO list.

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

    Yes, you’re correct, the information is in the javadocs… it just failed to register with me.

    thanks again.

    in reply to: Deployment / Configuration issues
    #26253

    I am trying to get pdf from the example emb_utf.jsp. But the output I am getting out of pdf is showing ? marks for chinese character.

    I created a directory fonts under the root of the application and put pd4ml.properties their.
    The contents of pd4ml.properties is
    #this is an autogenerated file. please remove manually any references to copyrighted fonts
    #Tue Aug 11 10:47:31 EDT 2009
    KaiTi_GB2312=SIMKAI.TTF

    and the content of emb_utf.jsp

    <%@ taglib uri="/WEB-INF/tlds/pd4ml.tld" prefix="pd4ml" %><%@page contentType="text/html; charset=UTF-8"%>



    PD4ML embedded fonts test




    随着就业难的加剧,大学生的期望月薪也一降再降。有专项调查显示,1.58%的学生为了职业理想可以接受“零工资”,
    有66%的学生将月收入定位在1000元至2000元之间。

    而北京市劳动保障局日前透露,今年北京地区本科毕业生初次就业率为88%,研究生为90.1%,专科生为80%,
    与去年基本持平。教育部今年的数据还未公布,去年全国普通高校毕业生就业率近73%,实现了245万毕业生就业。

    The lib directory have
    pd4ml_demo.jar
    pd4ml_tl_demo.jar
    ss_css2.jar

    So I am not sure what more change I have to do to make it run. I have to use the pro version for polish site. If it works fine Can anybody help

    in reply to: HTML/CSS rendering issues
    #26254

    Is there a way to specify rotation for an image?

    Thanks,
    Lloyd

    in reply to: page-break-inside:avoid; on divs
    #27380

    No. page-break-inside:avoid currently works only for images, tables, table rows and some HTML form elements.

    in reply to: Troubleshooting
    #26256

    I found html to image in java.
    pd4ml-html-css-pdf-tips-tricks-f7/html-to-image-conversion-with-pd4ml-t39.html

    but I cannot implement how to convert html to image in .net?

    please show the sample codes?

    in reply to: HTML/CSS rendering issues
    #26257

    Hi,
    I am new to PD4ML.I am using PD4ML through custom tags.

    MY PD4ML JSP Page follows:
    <%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/tld/taglibs-unstandard.tld" prefix="un" %>

    <%@ taglib uri="/WEB-INF/tld/pd4ml.tld" prefix="pd4ml" %>

    ${COA.coaContent}

    ${COA.coaContent} is the value which brings HTML content from Database.
    which has to be rendered as PDF.
    HTM content we are getting from database is the content give by FCK Editor when pasted from WORD,OPEN OFFICE,EXCEL e.t.c

    The problem is when content is from excel PDF generated is absolutely fine. But when the content is from WORD, or just normal text ,then the font of letters in PDF is Very small..

    When i looked at HTML content.. there are font size tags in it. I think that tags are causing problem
    Is there any way where we can set a standard font size to PDF by ignoring HTML content font size tags may be??
    or any other suggestion which rectifies my problem.

    in reply to: Font size overwriting problem
    #27497

    I have rectified the problem for content which is being pated from WORD document by adjusting screenWidth attribute of PD4ML.

    But still the problem of font size variations exists for normal typed text in FCK Editor.
    Can you please help me

    in reply to: HTML/CSS rendering issues
    #26258

    Hi

    To what extend does PD4ML support (automatic) kerning and if it does, what factors do affect it.

    My problem, I’m using a custom font folder with an Arial Narrow font (right now I use the ttf File from OS X, but this might change) and in some rare letter combinations (especially with Te) it appears like PD4ML doesn’t do any automatic kerning.

    You can see the (small) difference in these two pictures:

    The second one was rendered by PD4ML.

    Thanks for your help!
    Cheers,
    Reto

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

    I’m using pd4ml as a converter on the command line, passing it ordinary HTML pages. I figured out using the pd4ml:page.break tag to control page size and orientation. Is there a way to control page orientation and formatting without using JSP, and without forcing a page break?

Viewing 15 posts - 151 through 165 (of 4,249 total)