Link to home
Start Free TrialLog in
Avatar of erikTsomik
erikTsomikFlag for United States of America

asked on

multi page pdf

I am trying to create a pdf file. I have data and the pdf need to constracted in a certain way.

Each page is 2 week increment

For example, the training was done on 1/1/2016, 1/7/2016,1/20/2016,1/25/2016

The first 2 dates need to be on the first page of the pdf, and then date 3 and 4 need to be on the second page.
Avatar of LajuanTaylor
LajuanTaylor

@erikTsomik -  There's a few options depending on how your template is setup. Are you using the "cfdocument" tag or ColdFusion Report Builder? Also, what database Engine are you using -  SQL Server or MySQL?
Does  your interface allow you to enter a date range or does your query just read the dates as found in the database?

The first thing I thought of was maybe using the database engine to perform the data grouping by weeks.

The second idea was maybe using a conditional date logic with the "cfdocument" tag for page breaks...
Avatar of erikTsomik

ASKER

I am using liveCycle Designer to build PDF. The interface will not allow entering any dates or date ranges.
@erikTsomik - I haven't worked with LiveCycle in several years...

Have you considered leveraging JavaScript to manipulate the page breaks? I was thinking that you could place a date object in the form footer, read it's value using JavaScript, and then perform conditional page breaks based on the date range (probably easier said than done).

I don't know what version of LiveCycle you are using, but the following Adobe scripting reference is for LiveCycle ES3:
http://help.adobe.com/en_US/livecycle/10.0/DesignerScriptingRef/WS92d06802c76abadb-3e14850712a151d270d-7ffa.html

Here's one more Adobe link for LiveCycle scripting basics:
http://help.adobe.com/en_US/livecycle/es/LiveCycle_Designer_Scripting_Basics.pdf
ASKER CERTIFIED SOLUTION
Avatar of _agx_
_agx_
Flag of United States of America 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