Link to home
Start Free TrialLog in
Avatar of Coast Line
Coast LineFlag for Canada

asked on

creating a ebook type with cfpdf

Hi, I have an scenario here where my try is to get all the records related to a single person of his recipe and create a PDF of his collected recipes and pur them available for Download. So whenever he/she changes his records, the pdf should get regenerated and then available for download again, can any experts guide me this way
ASKER CERTIFIED SOLUTION
Avatar of SidFishes
SidFishes
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Coast Line

ASKER

hi Sid, Thanks for the headstart, But the Thing suppose at some point of time, i have to upgrade the pdf and ass/remove some recipes, but i do not want the whole cfdocument to render again, so will it be possible to do the same stuff with cfpdf tag, like merging/delete and i suppose i can add extra header/footers with it also right

yes i believe so but I've not used cfpdf all that much - I always just rerun the whole document. For my purposes it's easier.
your example is a good one and i will certaintly accept it, but i will wait a little bit if any experts who worked more with cfpdf can help me in this
i m using code and getting this issue

cfdocument tag has no body.
It must have a body or a source file or URL.

<cfdocument format="pdf" pageheight="11" pagewidth="8.5" unit="in" orientation="portrait"
      filename="#ExpandPath('../#Dir2#/#CreateUUID()#.pdf')#" overwrite="yes">
   <cfoutput>
      #recipePDF#
   </cfoutput>
</cfdocument>
ok i solved it, but it is not including all the records, just the first one, why so?
I expect you'll need an output loop in your cfsavecontent - mine was just a generic example
yeah, Solved it, added few header/footer section but still it creates the page break at anypoint while i want it to be broken at some poin