Copy link to clipboard
Copied
Hi All,
I got a very strange problem. I am trying to merge several PDFs (this happens with 2 or 200). They are all similar 1 page PDF files that were generated with CFPDFFORM.
When I try to merge them together using
<cfpdf action="merge" destination="scoreCardsPrint\scoreCardsPrint_#URL.eventid#_#URL.round#.pdf" directory="#tempDirectory#" order="name" overwrite="yes">
In the resulting file, I get the correct number of pages, but every page is exactly the same as the first.
Any ideas/suggestions?
Copy link to clipboard
Copied
I cannot replicate this with a very simple test case on either CF8 or CF9 (it always helps if you specify which CF version you're on, btw).
Can you pls post some simple & stand-alone code that replicates what you're seeing? The repro case ought to be the barest minimum code you need to replicate/demonstrate the problem. This could also help you identify what it is about your code - if it's a code thing - causes the problem. It should be the first thing you do when trying to troubleshoot an issue.
It is probably also relevant to post the exact sort of CF install you have, and on what OS.
--
Adam
Copy link to clipboard
Copied
We are using CF9.
And it turns out, that the problem only exists if trying to merge PDF forms that aren't flattened.
I added a command to flattem the PDFs before merging, and then it worked.
But it would be nice if if it was possible to correctly merge unflattened forms.