Questions tagged [cfpdf]

CFPDF is a feature in the CFML language that allows for the manipulation of PDF documents.

CFML tag that manipulates existing PDF documents. The following list describes some of the tasks you can perform with the cfpdf tag:

  • Merge several PDF documents into one PDF document.
  • Delete pages from a PDF document.
  • Merge pages from one or more PDF documents and generate a new PDF document.
  • Linearize PDF documents for faster web display.
  • Remove interactivity from forms created in Acrobat® to generate flat PDF documents.
  • Encrypt and add password protection to PDF documents.
  • Generate thumbnail images from PDF documents or pages.
  • Add or remove watermarks from PDF documents or pages.
  • Retrieve information associated with a PDF document, such as the software used to generate the file or the author, and set information for a PDF document, such as the title, author and keywords.

This tag was added in ColdFusion 8.

Adobe documentation reference

Railo documentation reference

46 questions
2
votes
2 answers

ColdFusion: how to populate livecycle pdf section dynamically using query data

I have a template PDF that has a section that will be laid out like a table. The data will come from a query. So this table will be dynamic, number of rows unknown. How do I accomplish this using ColdFusion? Is it a combination of creating a…
Larry
  • 989
  • 4
  • 12
  • 25
1
vote
2 answers

PDF generated using CFDocument with CFPDF Action="Header" does not print on Paper or preview

I have generated pdf using cfdocument. Added header using cfpdf="addHeader". This header doesn't print when printed on paper or show up in print preview. Here is the code Daily Consumer…
Jignesh
  • 21
  • 2
1
vote
1 answer

cfpdf tag - saveoption with linear or without linear doesn't work?

Using cfpdf with saveoption = "linear" or "full". I can't able to see any difference between using it. If anyone knows this means, please share it here. Thank you.
1
vote
1 answer
1
vote
1 answer

Displaying the contents of a PDF file on the page using Coldfusion

I have a page that is dedicated to the Standard Operating Procedures (SOP). I want this page to show the the SOP in the page with a download button above it (and for Admin an upload button). Basically I want the user to be able to read the SOP…
Clark
  • 63
  • 8
1
vote
0 answers

How to read data from pdf document and insert into database?

I got PDF document from the customer. The document is 60 pages long. I need to read the data from middle of the page 49 to page 58. In ColdFusion there is cfpdf tag that allows reading the pdf documents. Here is example of what I have so…
espresso_coffee
  • 5,980
  • 11
  • 83
  • 193
1
vote
2 answers

ColdFusion cfpdf Thumbnail numbering is incorrect

I am using the cfpdf function in ColdFusion to create a document packet, i.e. merging a range of documents into one PDF file. The merge works correctly and the thumbnail images correctly link to their respective pages. However, the page numbers…
Ken Haynes
  • 105
  • 11
1
vote
2 answers

fpdf single output with multiple images

How do you output all images in a directory to the same pdf output using fpdf. I can get the last file in the folder to output as a pdf or output multiple pdfs for each image, but not all images in the same pdf like a catalog. I'm sure it is the…
wolfman
  • 21
  • 1
  • 4
1
vote
0 answers

Any limits there for merge?

I am experiencing performance issues while writing and merging thousands of PDF files into single PDF file. Each PDF file is about 1.76MB. My JVM heap size is default of 512 only. I've increased the JAVA heap size to 2048 MB. The following code…
Sathish Chelladurai
  • 670
  • 1
  • 8
  • 23
1
vote
0 answers

FPDF Script Timed Out

I’m working with the FPDF library to generate PDFs. At some point I include an image into the pdf (in the header) and do: require_once APPPATH . '../vendor/setasign/fpdf/fpdf.php'; class cifpdf extends FPDF { public function __construct($params =…
Miles M.
  • 4,089
  • 12
  • 62
  • 108
1
vote
0 answers

CFPDF merge error: Error casting an object of type com.adobe.internal.pdftoolkit.core.types.ASString cannot be cast to [B to an incompatible type

I am trying to merge a series of pdf files I have created with cfthread. I am using the following code: select * from mytable
user6601292
1
vote
0 answers

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…
Loshy
  • 73
  • 2
1
vote
1 answer

Dimensions of a pdf page

I'm adding a watermark to pdf document, but position 0,0 is the bottom left-hand corner. I need to put the watermark at the top left-hand corner. Q: Using version 8 of ColdFusion, how do I determine the page size, or how can I position the watermark…
Phillip Senn
  • 46,771
  • 90
  • 257
  • 373
1
vote
2 answers

Convert html to image and add into a pdf using coldfusion

I am using cfpdf and cfdocument to create thumbnails and save them to a pdf. Everything works ok but I don't like the resolution. What other approach can I use to generate images from HTML, then create a pdf with those images.
1
vote
1 answer

Using binary data as a source in Railo's cfpdf tag

So I am saving PDF blob in a database and trying to retrieve it and display it on a page. When i run the code on Coldfusion 10 it runs as expected. However, when i move the same exact code over to Railo 4.2.1.0 I get an error. I'm curious if it is…
Andy Harb
  • 41
  • 1
  • 5