Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / September 2007



Tip: Looking for answers? Try searching our database.

CFPDF Merge Tag

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fglenn - 23 Sep 2007 17:51 GMT
I receive batches of similar PDFs from the government (50 to 250 at a time)
that have 2 pages and I need to print only page 1 from each of them.  I store
the PDFs in a directory called PDFs.

I can successfully merge both pages of the PDFs into a document called DS2019
using:
<cfset myPath = "c:\Inetpub\wwwroot\PDFs\">
<cfpdf action="MERGE" directory ="#myPath#" destination="#myPath#DS2019.pdf">

Within the <cfpdf> tag I am attempting to use the <cfpdfparam> tag to merge
only page 1:
<cfpdfparam source="#myPath#*.pdf" pages="1">
but the source attribute does not like the global *.pdf value I'm using to
tell it I want all PDFs.

Can anyone provide me a suggestion on how to tell the <cfpdfparam> source
attribute that I want all the PDFs in my PDFs folder?
Is there a better way to produce my merged PDF with page 1 of the batch PDFs?

Thank you...
Glenn
GArlington - 25 Sep 2007 11:34 GMT
> I receive batches of similar PDFs from the government (50 to 250 at a time)
> that have 2 pages and I need to print only page 1 from each of them.  I store
[quoted text clipped - 17 lines]
>  Thank you...
>  Glenn

>From CF docs:
Merge PDF documents into an output PDF file
<cfpdf
   required
   action = "merge"
       one of the following:
   directory = "directory of PDF files to merge"
   source = "comma-separated list of PDF source files|absolute or
relative pathname
       to a PDF file|PDF document variable|cfdocument variable"
   <cfpdfparam ...>
       required if directory is specified:
   order = "name|time"
       one of the following if <cfpdfparam ...> is specified:
   name = "PDF document variable name"
   destination = "PDF output file pathname"
   optional
   ascending = "yes|no"
   keepBookmark = "yes|no"
   overwrite = "yes|no"

   pages = "pages to merge in PDF source file"

   password = "PDF source file password" stopOnError = "yes|no"
one of the following:
   destination = "PDF output file pathname"
       name = "PDF document variable name">

Please take a look at "pages" attribute...
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.