Forum Replies Created

Viewing 15 posts - 2,791 through 2,805 (of 4,234 total)
  • Author
    Posts
  • in reply to: Fit image bu width or height
    #29671

    I am afraid percentage height values are not supported. In PDF generation context not always obvious what should be taken as a basis to calculate relative height.

    For example:
    [language=xml:9q4snp8x]

    [/language:9q4snp8x]

    In the case image height depends on HTML body height, but html body height depends on image height.

    in reply to: How to embedd PDF?
    #29668

    http://pd4ml.com/cookbook/pdf-attachments.htm

    So I tried the inline option but pdf:attachment tag always asks for src attribute.. If I leave it empty:

    <pd4ml:attachment description="attached.txt" src=""><br /> data:base64,YSxiLGMsZCxlDQp2YWx1ZSAxLCB2YWx1ZSAyLCB2YWx1ZSAzLCB2YWx1ZSA0<br /> </pd4ml:attachment>

    I see just an icon and not the attachment. Do I do something wrong?

    in reply to: Trouble understanding differencies between Linux and Windows
    #29624

    In the next version it will suppress the version-, JVM- and OS- specific info when a document ID is overridden with System.setProperty(“pd4ml.document.id”, “…..”) call.

    Normally we publish monthly maintenance updates. The most recent release was few days ago. I expect a new version is to be available close to the middle of March.

    in reply to: How to embedd PDF?
    #29669

    Try
    [language=xml:2obi8vy9][/language:2obi8vy9]

    in reply to: HTML/CSS rendering issues
    #26994

    Just tried to add such thing – failed. As soon as you specify div inside header as position:absolute the content (which is img tag) goes over it and covers it.
    Is there any way to implement such thing? I want to “put” a stamp over the image.
    Thank you in advance

    in reply to: Trouble understanding differencies between Linux and Windows
    #29625

    Thank a lot for all your answers.

    All given solutions seems perfect !

    Can’t wait to see your new release !

    in reply to: Problems with bullets in list, RTF file
    #29664

    Just tested it and indeed is solved, thanks!

    in reply to: HTML/CSS rendering issues
    #26995

    Hi there,
    I try to convert this html code:

    <br /> <p><br /> Dear Jack,<br /> <br />this is line 1.this is line 1.this is line 1.this is line 1.<br /> </p><br /> <p><br /> this is line 2<br /> <br />this is line 3<br /> </p><br />

    Why there is so much space between p tag in VAND generated pdf?
    Is there a way to reduce it?

    #29244

    Hi Team,

    Are you planning to use some stream or writer so it can handle big pdf. 17 MB html file should not be big. Ideally framework should allow 1 GB html file to pdf.

    Thanks
    Ram

    in reply to: P tag "interline" problem
    #29673

    I resolved with {padding:0; margin:0} styles added to p and div tag.

    in reply to: P tag "interline" problem
    #29674

    Probably a removal of paragraph margins completely is not always a good idea. You could define/override styles only for particular cases, for example:

    P + P, DIV + P { margin-top: 0 }

    resets top margin, only if a paragraph follows other paragraph or DIV

    #29245

    I am afraid, a streamed or serialized HTML-to-PDF conversion is not possible – a document must be rendered in memory completely before it is converted to PDF. There is always a possibility that at the end of a document there is an HTML tag or a content portion, which would require a complete document re-layouting.

    #29626

    Hi !

    We’ve tried your new version 3.9.5, it doesn’t allow to overwrite pdf metadata.
    Furthermore, when we look at the source code, we don’t see any change regarding our case.
    Thus, could you give us some precision regarding which version will “permit the suppression of the version-, JVM- and OS- specific info when a document ID is overridden with System.setProperty(“pd4ml.document.id”, “…..”) call” and when it’ll be able.

    Best regards,

    in reply to: General questions / FAQ
    #26996

    PD4ML Support team,

    Thank you for an excellent product.
    I was able to use PD4ML to create PDF from HTML and was able to merge PDF documents created by PD4ML easily.

    On the other hand, I got a Java.lang.NullPointerException error when I tried to merge a general PDF file that was not created by PD4ML.

    Do you have any suggestion or do you have a secure location I can send the PDF in question to you ?

    Thanks !

    Benjamin
    benjamin_lau@yahoo.com

    Here is the log

    Merging : 000001419-000001.pdf
    Merging : 000001412-000001.pdf
    Merging : 000001412-000002.pdf
    Merging : 000001412-000003.pdf
    Merging : 000001413-000002.pdf
    Merging : 000001413-000001.pdf
    Merging : Account-Servicing-Communications-ASC-012412.pdf
    Merging : Address-Changes-011912.pdf
    java.lang.NullPointerException
    at org.zefer.pd4ml.npdf.c.o00000(Unknown Source)
    at org.zefer.pd4ml.npdf.parser.g.super(Unknown Source)
    at org.zefer.pd4ml.npdf.parser.g.super(Unknown Source)
    at org.zefer.pd4ml.npdf.PD4DocumentBase.write(Unknown Source)
    at org.zefer.pd4ml.npdf.PD4DocumentBase.write(Unknown Source)
    at com.tfs.km.kmPrintEngine.KmPrintBinder.MergePdfDocuments(KmPrintBinder.java:201)
    at com.tfs.km.kmPrintEngine.KmPrintBinder.retrieveBinderPages(KmPrintBinder.java:108)
    at com.tfs.km.kmPrintEngine.KmPrintBinder.main(KmPrintBinder.java:38)
    java.lang.NullPointerException
    at org.zefer.pd4ml.npdf.parser.f.super(Unknown Source)
    at org.zefer.pd4ml.npdf.parser.g.super(Unknown Source)
    at org.zefer.pd4ml.PD4Document.o00000(Unknown Source)
    at org.zefer.pd4ml.npdf.PD4DocumentBase.read(Unknown Source)
    at org.zefer.pd4ml.npdf.PD4DocumentBase.Ó00000(Unknown Source)
    at org.zefer.pd4ml.npdf.PD4DocumentBase.append(Unknown Source)
    at com.tfs.km.kmPrintEngine.KmPrintBinder.MergePdfDocuments(KmPrintBinder.java:197)
    at com.tfs.km.kmPrintEngine.KmPrintBinder.retrieveBinderPages(KmPrintBinder.java:108)
    at com.tfs.km.kmPrintEngine.KmPrintBinder.main(KmPrintBinder.java:38)

    in reply to: General questions / FAQ
    #26997

    I am getting null pointer exception.once see my code
    Note:I am using Ubuntu os in my system

    [language=java:24zmmorm]public String convert(String patid,int pdfcnt,int needhead,String dischuser) throws FileNotFoundException, IOException, DocumentException, DaoException, Exception {
    Converter1 converter = new Converter1();
    List ls=dao.executeQuery(“select admin.getusernm(i.userid) usernm,u.unitnm,u.unitid from ip.ipinfo i,ip.unithdr u where u.unitid=i.unit and patid='”+patid+”'”);
    Map mp=null;String docnm=””,docid=””,docregno=””;String fonts=””,length=””;
    if(ls.size()>0){
    mp=(Map)ls.get(0);
    usernm=mp.get(“USERNM”).toString();
    docnm=mp.get(“UNITNM”).toString();
    docid=mp.get(“UNITID”).toString();
    }
    mp=null;
    List lst=dao.executeQuery(“select nvl(drregno,0) drregno from admin.doctorinfo d,ip.unitmaster u where u.doctorid=d.docid and u.unitid='”+docid+”'”);
    if(lst.size()>0){
    mp=(Map)lst.get(0);
    docregno=”0″;
    }
    String path = dao.gettomcatserverPath1() + “webapps/wordimages/disch” +patid+ “.pdf”;
    List list1 = dao.executeQuery(“select wordole from ip.dischargetemplate where patid='”+patid+”'”);
    String htmlFileName =((Map)list1.get(0)).get(“WORDOLE”).toString();
    htmlFileName=htmlFileName.replace(“$DOCNM”,docnm).replace(“$DOCREGNO”, docregno);
    File pdfFile = new File(path);
    converter.runConverter(htmlFileName,pdfFile);

    return “1”;
    }
    private String runConverter(String urlstring, File output) throws IOException {

    if (urlstring.length() > 0) {
    if (!urlstring.startsWith(“http://&#8221;) && !urlstring.startsWith(“file:”)) {
    urlstring = “http://&#8221; + urlstring;
    }

    java.io.FileOutputStream fos = new java.io.FileOutputStream(output);

    if ( proxyHost != null && proxyHost.length() != 0 && proxyPort != 0 ) {
    System.getProperties().setProperty(“proxySet”, “true”);
    System.getProperties().setProperty(“proxyHost”, proxyHost);
    System.getProperties().setProperty(“proxyPort”, “” + proxyPort);
    }

    PD4ML pd4ml = new PD4ML();

    try {
    pd4ml.setPageSize( landscapeValue ? pd4ml.changePageOrientation( format ): format );
    } catch (Exception e) {
    e.printStackTrace();
    }

    if ( unitsValue.equals(“mm”) ) {
    pd4ml.setPageInsetsMM( new Insets(topValue, leftValue,
    bottomValue, rightValue) );
    } else {
    pd4ml.setPageInsets( new Insets(topValue, leftValue,
    bottomValue, rightValue) );
    }

    pd4ml.setHtmlWidth( userSpaceWidth );

    pd4ml.render( urlstring, fos );
    }
    return “1”;
    }

    }[/language:24zmmorm]

Viewing 15 posts - 2,791 through 2,805 (of 4,234 total)