Author | Topic: RTF to PDF | |
---|---|---|
Jose Luis | RTF to PDF on Thu, 26 Aug 2010 20:05:18 -0300 Guys, I have the following nightmare's scenario... My client's needs to generate PDF's from RTF's designed bills. Details: my application gets the RTF file that the client has designed and adds Application's Data (name, surname, etc.) ... finally I need to generate a PDF from this Modified RTF.... For RTF's treatment I'm actually using Alaska's approach to RTF (XbpRtf) ... and for PDF's generation I'm using Edgar Borger's PDF class (XbpPdf) ... does anyone knows how to solve this problem ? Thanks. Jose Luis. | |
Pablo Botella | Re: RTF to PDF on Fri, 27 Aug 2010 04:55:39 +0200 Hi, Using quickpdf ( http://www.quickpdflibrary.com/ ) you can create a PDF HDC where you can render your RTF you can download the quickpdf wrappers from my site ( http://news.xbwin.com/newsgroups.php?art_group=ot4xb.examples&article_id=38 ) Also Hubert Brandel was made a rework over my wrappers adding some stuff to make his own version compatible with his HBPrint class. (http://news.xbwin.com/newsgroups.php?art_group=xfree.resources&article_id=105 ) Another option maybe VPE ( http://www.idealsoftware.com ) that accept RTF text directly ( the only trouble is that the version supporting this feature is a bit more expensive ) Here the wrapper ( http://news.xbwin.com/newsgroups.php?art_group=xfree.resources&article_id=92 ) Also quickpdf library have the option to fill PDF fields, so it's easy to generate a template PDF ( from the RTF source) using Open Office and add some fields, and later add the content using quickpdf. Regards, Pablo Botella | |
Jose Luis | Re: RTF to PDF on Fri, 27 Aug 2010 13:53:06 -0300 Thanks Pablo for your quick answer... I think this approach are quite expensive ... does anyone maybe knows another approach ? maybe using other document format as an input... as an examples a designed bill in html and then from Alaska's application adds bill's data and finally printing to pdf . Thanks. "Pablo Botella" <pb_no_spam_@_remove_all_betwen_underscores_xbwin.com> escribió en el mensaje de noticias:640170af$36607f0$2d201@news.alaska-software.com... > Hi, > > Using quickpdf ( http://www.quickpdflibrary.com/ ) you can create a PDF > HDC where you can render your RTF > you can download the quickpdf wrappers from my site ( > http://news.xbwin.com/newsgroups.php?art_group=ot4xb.examples&article_id=38 ) > > Also Hubert Brandel was made a rework over my wrappers adding some stuff > to make his own version compatible with his HBPrint class. > (http://news.xbwin.com/newsgroups.php?art_group=xfree.resources&article_id=105 > ) > > Another option maybe VPE ( http://www.idealsoftware.com ) that accept RTF > text directly ( the only trouble is that the version supporting this > feature is a bit more expensive ) > Here the wrapper ( > http://news.xbwin.com/newsgroups.php?art_group=xfree.resources&article_id=92 ) > > Also quickpdf library have the option to fill PDF fields, so it's easy to > generate a template PDF ( from the RTF source) using Open Office and add > some fields, and later add the content using quickpdf. > > Regards, > Pablo Botella | |
Pablo Botella | Re: RTF to PDF on Fri, 27 Aug 2010 19:19:49 +0200 >I think this approach are quite > expensive ... VPE is expensive ( I've used the free edition ) , but QuickPDF only costs 250$ and provide also features to render anything on it. Just need to obtain an QPDF device context for the pdf page and render from your rtf control using EM_FORMATRANGE or EM_DISPLAYBAND if you want to print portions of the page. And also the option I was used was to create PDFForms with Open Officce and fill the info with QuickPdf, this is so easy and so good. | |
Jose Luis | Re: RTF to PDF on Sat, 28 Aug 2010 16:53:45 -0300 Thanks Pablo again !!!.. Finally I found a simple solution using XbpPdf (from Edgard Borger) ..I ask my clients to send me the designed bill in JPG Format.. Then I simply create the PDF with this JPG and Application's info from Alaska ( XbpPdf:Text() ) and this it .. the predesigned bill with App's info in a PDF Format ! Jose Luis. "Pablo Botella" <pb_no_spam_@_remove_all_betwen_underscores_xbwin.com> escribió en el mensaje de noticias:52a93ed0$5ac714e5$d59b@news.alaska-software.com... >>I think this approach are quite >> expensive ... > VPE is expensive ( I've used the free edition ) , but QuickPDF only costs > 250$ and provide also features to render anything on it. Just need to > obtain an QPDF device context for the pdf page and render from your rtf > control using EM_FORMATRANGE or EM_DISPLAYBAND if you want to print > portions of the page. And also the option I was used was to create > PDFForms with Open Officce and fill the info with QuickPdf, this is so > easy and so good. |