Examples of filling pdf form with iText in ColdFusion - coldfusion

Looking for some examples of iText 5 and ColdFusion 7.
I need to fill some pdf forms with data from the DB all the iText and ColdFusion examples I found are at least 4 years old and use previous version of iText.

i have an example on how to do this in one of my previous question:
Adding a dynamic image to a PDF using ColdFusion and iText

Related

Automatic page break inside table cells in Latex

I've a question about long tables in Latex.
How is it possible to automatically break text content inside a long table cell.
I read lot of articles and examples and tried it (e.g. longtable)
But I still can not believe that there should be no solution for this. Currently I am using the Apache FOP processor to generate PDF documents via XSLT. Here, the tables are wrapped within a cell.
Apache FOP example
Have someone the same problem and have a solution?
Thank you, Frank

ColdFusion PDF to text using cfpdf - Formatting issue

We have a requirement to extract the content of an uploaded PDF and then show it in a text area with the same formatting. Our application runs on ColdFusion 10.
We used cfpdf however the extracted text is a single paragraph with No formatting.
Is there anyway in ColdFusion to read the PDF as text retaining the source formatting (100% accuracy is not expected) .
Note:
We tried itext and it works very well however it comes with a licensing cost which I don't want to spend as I'm only going to use this single feature from the bundle that itext is providing.
Tried PDFbox but the formatting is not retained.

Hyperlinks not working in PDF ver 1.2

We have a old c++ programs that creates the PDF document. This program creates PDF Ver 1.2 document. PDF with text, tables and images were created fine, using this program.
Now I have to create a hyperlink in the pdf file. I have used the Streams and Objects as specified in the W3.org link(see, Example 4: Marking up link text using a /Link structure element). This link explains about the Pdf Ver-1.7. I guess these streams will not suit for Version 1.2. Applying these streams and objects are not creating the hyperlink.
So First, I want to make sure, does the PDF Ver-1.2 supports hyperlinks?
I don't see any document related to Ver-1.2. Can any one share, what kind of objects and stream need to create to construct hyperlink in Ver-1.2 ?
Thanks

CFDocument PDFs are huge (ColdFusion 8)

I wanted to add a PDF generation button for articles. Everything is working well until I noticed that the file sizes are upwards of 4MB for a document with 200KB of JPG images and about 120KB of HTML. So, I tossed the CFDocument into the CFPDF tag which reduced it to 1.5MB. Better. Then I put it through Acrobat's web optimizer which took it down to 335KB. I cannot find an "optimizing" solution with either CFDocument or CFPDF. I was hoping for a quality setting or something. I should also note that CFDocument takes a while to process (relatively speaking). Since ColdFusion 9 added an optimize function, I'm guessing that I'm out of luck until this server is upgraded. True?
<cfdocument format="pdf"
localurl=true
name="loc.tempPDF">
<cfoutput>#loc.articleContent#</cfoutput>
</cfdocument>
<cfpdf action = "write"
destination = "#expandPath('\pdf\temp.pdf')#"
source = "loc.tempPDF"
overwrite = "yes"
saveOption = "linear" />
That's correct, there is currently no way to optimize PDFs in ColdFusion 8 with the native cfdocument or cfpdf tags. If you absolutely have to make this happen without upgrading to CF9 (which has much improved PDF compression), then you could look at the iText library for generating PDFs via Java.
I built a Document Management System using CF 6.1 a few years ago. I used GhostScript to create, concatenate and optimize PDFs.
Here's a blog post showing how you can use GS to optimize a PDF's size.

Exporting to Powerpoint from Coldfusion

I was interested in being able to export data from Coldfusion to Powerpoint. I saw this section on StackOverflow
Generating Powerpoint PPT with ColdFusion?
which was posted almost 3 years ago. I was hoping there would be something more relevent since then instead of using the Apache POI.
I have tried using the cfcontent tag similar to how you would export to excel, I am able to get ppt to open, but a blank template opens up when I use cfcontent type="application/vnd.ms-powerpoint". Ultimately, I will be using this to try to export charts to a ppt slide. I believe cfcharts with the jpg option is the best solution, although I am currently using FusionCharts on my site itself.
Sorry I'm such a noob, but any suggestions or advice would be greatly appreciated.
Thanks!
Have you looked into the <cfpresentation /> family of tags? It does exactly what you are looking for, allows you to generate PowerPoint files on the server. http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7910.html