Questions tagged [cfdocument]

CFDocument is a tag in the CFML language used to dynamically create PDFs. It translates generated HTML/CSS into postscript and either outputs a PDF to the browser or saves it to a file.

By wrapping a CFML page in a CFDocument tag the ColdFusion server will translate the HTML/CSS to postscript and generate a PDF. There is a limited subset of CSS styles supported, which can be located on the documentation page. The ColdFusion server reads the HTML using an internal browser and renders using the iText Java library. This process along with limited CSS support can often generate unexpected layout difference between the produced PDF and running the same page in a browser without the CFDocument tag wrapping it.

109 questions
8
votes
4 answers

COLDFUSION: cfdocument and forcing a pagebreak

I am creating a dynamic PDF in ColdFusion and having an issue with "pagebreak". The page in question could have 1 record, or up to 60+ records. Each record is displayed in 2 rows of a table. Some of the returned records are being split between…
nope_four
  • 492
  • 1
  • 4
  • 16
6
votes
3 answers

How can I prevent page-break in CFDocument from occuring in middle of content?

I am generating a PDF file dynamically from html/css using the cfdocument tag. There are blocks of content that I don't want to span multiple pages. After some searching I found that the style "page-break-inside" is supported according to the docs.…
Dan Roberts
  • 4,664
  • 3
  • 34
  • 43
5
votes
1 answer

Adding a footer only to the last page when using cfdocument

I'm creating a multipage document using cfdocument (created using dynamic text so could have any number of pages even one). I can use to add a footer to every page, but is there any way I can only add a footer to just…
Loftx
  • 1,760
  • 4
  • 29
  • 50
5
votes
3 answers

Content-disposition being ignored in IE 9 and Firefox 13

I am trying to dynamically create an inline PDF that, when the user chooses to save it, prompts with my custom filename. According to the documentation, the saveasname attribute should do what I want. (format="PDF" only) The filename that appears…
ale
  • 6,369
  • 7
  • 55
  • 65
4
votes
1 answer

How to disable "AllowPrinting" for PDF generated in cfreport/cfdocument?

The business requirement says that the PDF cannot be printed. I looked up the doc of cfreport, and it says for format="pdf", there is a permissions attribute that I can set to a list of permissions including AllowPrinting. However, setting…
Henry
  • 32,689
  • 19
  • 120
  • 221
4
votes
1 answer

How to insert a pagebreak in cfdocument after every 4 records

I have the following cfdocument code:
user6304526
4
votes
2 answers

Image is not displaying in cfdocument pdf for coldfusion 10

I am using ColdFusion 10 Enterprise edition, and am unable to display images when using CFDOCUMENT to generate a PDF. Below is the piece of code I am using:
Snehanjali Sahoo
  • 3,432
  • 3
  • 17
  • 19
4
votes
1 answer

CFDocument and high ASCII?

I have a little script that creates a PDF using to write a PDF. It looks something like this (minimalized code): When my data includes high ASCII chars like ☐ (☑) I…
Dollique
  • 952
  • 2
  • 10
  • 29
3
votes
1 answer

CFDOCUMENT creates PDF with different MD5 hashes for same input

I am using CFDOCUMENT to create a PDF in CF9.0.1. However with the same input each time I generate a new PDF using CFDOCUMENT the MD5 hash seems to be different. Test code is simple:
andrwo
  • 53
  • 2
3
votes
1 answer

How to add approved stamp in Cover Page in ColdFusion

I need some help on ColdFusion I am trying to create a Cover Page and then add Approved Stamp next to the Reviewer. However, I can able to add the stamp on the page but not next to the Reviewer. Here is the ColdFusion code.
Sandeep
  • 105
  • 1
  • 1
  • 14
3
votes
2 answers

the request has exceeded the allowable time limit tag: cfoutput

I have a large report. The SQL only takes about 60 seconds to run but the actual rendering of the PDF is what takes up all the time. It has hundreds of pages. The global setting for request timeouts is set to 240 seconds. I am overriding the…
gnarbarian
  • 2,622
  • 2
  • 19
  • 25
3
votes
2 answers

CFDocument PDF - Header Gets Cut Off When Printing

I have a PDF that I generate via the CFDocument tag. When it generates the PDF and you click on the "printer" icon to pop up the print dialog. For Page Sizing & Handling if it's set to either "Fit" or "Shrink oversized pages", it prints fine. If…
yaki33
  • 65
  • 2
  • 8
3
votes
3 answers

Saving the modified contents of a pdf

I've got a form that I downloaded, I'd like to prefill some content on the form (this is easy using cfpdfform). Where it gets tricky is I would like to allow the user to modify the contents of that form, and then somehow have those modified…
Anthony Webb
  • 1,311
  • 4
  • 15
  • 22
3
votes
0 answers

landscape and portrait page orientation in PDF document with ColdFusion

I am in the process of taking some CPS formatted data from the database, placing the information in arrays, and then simply displaying it in a pdf document. This is not a problem, there are page breaks and so forth the issue is the following when…
EXL
  • 77
  • 7
3
votes
0 answers

cfdocument ignoring the scale directive and autoscaling document

Environment : ColdFusion 10 on Windows 8.1 and ColdFusion 9 on Windows Server 2008 R2 Using standard versions of IIS. I am using cfdocument to generate a standard format letter that has variable content. In amongst the content is a table that has a…
1
2 3 4 5 6 7 8