>- see footer for list info -<
Hi all,

Does anyone have experience of using cfdocument (or any other PDF
converters) for HTML with div-based pages?

ie, I have a file that might look like this:
<div class="page">page1</div>
<div class="page">page2</div>
<div class="page">page3</div>

And I need to convert it to PDF like this:
<cfdocument...>
    <div class="page">page1</div>
  <cfdocumentitem type="pagebreak"/>
    <div class="page">page2</div>
  <cfdocumentitem type="pagebreak"/>
    <div class="page">page3</div>
</cfdocument>

I can do that by reading the file, replacing the cfdocumentitems in, saving
as a temp file, then cfincluding it inside the cfdocument, then deleting the
temp file.

But that seems messy, and it'd be nice if there was simply a way to specify
a regex in the cfdocument tag, eg:
<cfdocument pagebreak='</div>\n<div class="page">' ...>

(I'm currently using cfdocument for convenience, but if anyone knows of
other PDF converters that are easy to use and would support this I am open
to ideas.)


Thanks for any suggestions.

Peter

-- 
\ \
Peter Boughton
blog.bpsite.net
/ /
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to