Rudimentary automated PDF generation using Delivers

Hi Everyone,
Thought I would share a little proof of concept I have managed to get working. I know there are simpler ways to have done this but our scenario was as follows:
Needed to generate 1000 odd customer reports. A dashboard which had already been formatted and included all of the various reports (approximately ten reports) was the basis of the requirement. There were 3 options as far as I could see:
1. Have somebody filter the dashboard 1000 times and save the results to PDF.
2. Redevelop the reports in BI Publisher.
3. Find a way to have the dashboard automatically create a PDF document.
Seeing as BI Publisher was certainly not my strength and we were under time pressure I decided to pursue option 3.
I setup the following logic:
1. Created a query that includes all the customers that need to be part of the reporting.
2. Created a table in the datawarehouse containing unique customer identifier and progress indicator.
3. Created a script that could be run from the query with all the customers in. Script populates table created in step 2 with all customer identifiers with the first record being marked in progress and the rest not started.
4. Create a subject area built off the table created in step 2 (no caching enabled)
5. Create a session variable based on selecting from the table populated in step 3 where status = In Progress
6. Create a second iBot that has a conditional request built off subject area created in step 4 where status = In Progress
7. Second iBot to deliver a dashboard page. All queries on page filtered on customer identifier = session variable from step 5
8. Create a script to automate the "engine"
8. Pass contents of iBot delivery to script
9. Script gets Customer identifier and creates file with same name
10. Script updates table and sets current record that is in progress to complete and next record that is not started to In Progress
11. iBot calls itself.
I think that is roughly how I got it to work. I am aware there are probably simpler ways to do this but I had fun doing it this way.
Let me know what you think.
Edited by: ChrisMarais on 12/05/2011 18:47

Nice post Chris, hope things treating you well down under.
The last line where the ibot calls itself, exiting the loop is dealt with by the incremental update of the status on the table, can you remember if you had a third status as complete??
Regards
Nick Holme

Similar Messages

  • Bulk PDF generation using 3-rd party tools and/or command line options

    Good day!
    I have another question:
    Is it possible to automatically convert a pack of Frame Maker books into PDF's using 3-rd party tools or command line options.
    Thank you

    Check out Datazone's DZbatcher available at
    http://www.datazone.com/english/overview/download.html
    This will give you the ability to batch convert FM books to PDFs.

  • Automating PDF Generation with InDesign

    Is it possible for InDesign to retrieve info from a database, automatically format the data with paragraph style(s) and export hi-res PDF art for each database entry? PDF export to include common art positioned on the master page. If this function is possible with InDesign, how does one accomplish this task?... AppleScript? I don’t speak code, so this could be very intimidating. Recommendations?

    I think you might need an interpreter. I speak code, sure, but very slowly and with a very thick accent.
    Plain vanilla InDesign won't hit a database; there are plugins for that. Catalog plugins, for example; if you're making something catalog-like, that's worth a search or three. If you can get CSV files from your DB, then Data Merge will work for minor automation. Read up on InDesign's XML capabilities if you need something more robust than that; it is extremely useful, and even someone like myself with barely-there software development skills can automate the production of a dictionary with XML spat out of a database.
    In terms of automating the the formatting, XML is another obvious choice, because the working method is to map an XML tag to a style.
    Exporting PDFs automatically is something that can be achieved with scripting, either Apple- or Java-. I don't know off the top of my head how to set it up, but there are quite a few talented scripters reading these forums, and perhaps one of them can nudge you in the right direction. Perhaps you'll see the advantage in actually contracting one of them to develop this for you.
    All that being said, I'd be surprised if there wasn't already a catalog plugin to do exactly what you want. (The last time I said "InDesign can't really do that" it took about fifteen minutes for the forum regulars to post both a plugin and a custom-developed script that basically completely fulfilled the original poster's criteria.)

  • Automating PDF Generation with Server-Side Acrobat - Benefit, Risks, Suggestions?

    Looking for some clarity...
    How feasible is it to automate PDF creation from Excel using Acrobat, as opposed to some third-party tool? 
    The SDK seems out of date.  Any issues programming with .NET?
    Are there better products out there, from third-party providers?
    Suggestions?

    The product replaced Distiller Server, but does much more than that. That used to be $5000-$10000, I believe, but LiveCycle products are a custom quote.
    The price is set high partly because it can replace a whole office full of Acrobat licenses, one reason (but not the only one) why enterprise level products are in a different universe pricingwise. I'd expect to pay at least to match 100-200 lost sales of Acrobat.

  • Serverside PDF generation using Report

    In the past I have used Reports to generate PDF reports that are then mailed to recipients in the company.
    I use to use a cronjob to call the reports executable on a server to create the pdf file.
    We are now using reports 9i and application server, and I am having problems trying to replicate this function.
    I do not need to run this via the web, but just produce the pdf that gets send out to recipients.
    What would be the easiest way to manage this.
    Can I call the rwserver using the command line to run a report using Cron. Or is there a report scheduler?
    Any suggestions would be most welcome.

    Hi,
    Can I call the rwserver using the command line If you used rwcli60 in 6i, then we have its equivalent command line executable in 9i that you can use. The 9i executable is rwclient. The remaining command can be the same as 6i.
    Navneet.

  • APEX 4.1 - APACHE FOP PDF generation problem.

    Hi all,
    I'm having problem with PDF generation using APACH FOP on OC4J.
    When I test my print server as described here:
    http://marcsewtz.blogspot.com/2008/06/heres-another-posting-on-pdf-printing.html
    everything works without problem. But when I upload my Layout to APEX and try to generate PDF from apex I'm getting error:
    oracle.xml.parser.v2.XMLParseException: Unexpected EOF.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
         at oracle.xml.parser.v2.XMLReader.popXMLReader(XMLReader.java:549)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1375)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:362)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:308)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:337)
         at oracle.xml.xslt.XSLProcessor.newXSLStylesheet(XSLProcessor.java:714)
         at oracle.xml.xslt.XSLStylesheet.<init>(XSLStylesheet.java:322)
         at oracle.xml.parser.v2.XSLStylesheet.<init>(XSLStylesheet.java:114)
         at apex_fop._jspService(_apex__fop.java:71)
         [SRC:/apex_fop.jsp:21]
    I could see similar post here:
    Handling Special characters in call to apex_util.download_print_document
    But it doesn't explain my case as it's crashing even when I generate empty pdf(no data so no special characters, only empty XML file with no data should be sent to print server)
    Is there any way to see what xml is sent do print server for processing? That could eventually show where is a problem.
    Palo

    My mistake, there was really an "&" character in my template. now when I replaced it with %26 it works.
    However I would be still interested if there is a way to see what data is APEX engine sending to print server cause it will help me to find this kind of errors.
    Palo

  • PDF generation in SDK

    All,
    I have some reports, whose PDF generation doesn't satisfy our requirements. A simple BO report page with a few sections.. ends up as a multiple page PDF. I had tried to also use the report/section properties as creatively as possible too.
    I would like to get some information about if some-one has done PDF generation using SDK and if that provides more feature-rich formatting options?
    Would appreciate your comments and advice.
    Regards

    Let's start with what version of CR / BO you are working with.
    What SPs have you applied?
    What version of .NET do you want to work with? What SDK do you want to work with (CR, RAS, BO)?
    Are you doing these exports in the CR designer? - If so, have you consulted with the CR Design team on best way to design these reports? Typically, if you can not do something in the desinger, you more than likely can not do it from code either...
    Ludek

  • Compare two pdf files using adobe acrobat through command line

    Does anyone know how to compare two pdf files using adobe acrobat through command line. I want to do this via command line because we want to compare hundreds of file every day through some automated windows tasks.
    If command line option is not available in acrobat, then is it feasible to make use of acrobat javascript API to do this task?
    Any kind of help will be greatly.

    Command-line: Not possible.
    JavaScript: Possible, but very limited. Basically the only thing you can do is simulate clicking the Compare Documents button. The rest has to be done manually.
    However, it *might* be possible to automate this process a bit more using a plugin. Ask over at the Acrobat SDK forum for more information...

  • Very slow PDF generation when conditional text is hidden in FM 9.0

    I am working on 96-page chapter of a larger book. A 7-page section of the chapter needs to be hidden until the next release, so I hid it with conditional text. After doing this, the "Save as PDF" printing process goes from taking 6-7 seconds to taking several minutes. If I unhide the conditional text in the same session, printing is very quick again.
    I have no problem generating very PDF files with the PDF printer in other applications (Word, PowerPoint). The issue is specific to FrameMaker and the use of conditional text. What might be causing this?
    I am using FrameMaker 9.0p255 and Distiller 9.0.
    - Chris

    Hi Jeff,
    These were good suggestions to try. Saving the document first has no effect on PDF generation.
    However, I did find that printing to the Adobe PDF printer remains fast when the conditional text is hidden. That's quite an interesting finding! I did also notice that these two methods of PDF generation aren't identical:
    "Save as PDF" opens an Adobe Distiller window, while printing to the Adobe PDF printer opens a different "Creating Adobe PDF" progress box (looks like it's from the printer driver itself).
    "Save as PDF" generates a 1188k PDF file, while printing to the Adobe PDF printer generates a 1049k PDF file.
    "Save as PDF" defaults to placing the PDF in FrameMaker's working directory, while printing to the Adobe PDF printer defaults to saving to the last place to saved a printed PDF file (awkward when working with multiple directories, as I often do).
    When I do a "Save as PDF", FrameMaker does still spool to the PDF printer. It is this spooling that takes a long time. Once spooling is complete, then the Distiller window opens and the PDF is created very quickly.
    I would still like to get "Save as PDF" working since it knows where to place the PDF file. No solution to the runtime yet, but at least there is progress...

  • Export to PDF - Can a single report (rpt file) create multiple PDF files using the export command?

    Post Author: markeyjd2
    CA Forum: Exporting
    Greetings forum members,
    My question is, in its entirety: Can a single report (rpt file) create multiple PDF files using the export command, ideally one PDF file per DB record?
    In my case; I have a Crystal Report that reads data from a DB table containing ~ 500 records.  When I export the report to a PDF file, I get one PDF file, with ~ 500 pages.
    What I would like to do is export the report to ~ 500 individual PDF files; One file per DB record.  The file names would be based on the table's primary key.
    Is this possible?

    Post Author: Micha
    CA Forum: Exporting
    Hi,
    you need some lines of code, but its easy. Dependend on how to start the generation of your 500 PDFs, you can write an ASP page and start it via Web Browser, or a Windows Script and start it via scheduled job...
    Here's an abstract of the ASP code I use:
    First, you create a recordset (here: "rsc") which gives you the list of ID fields you want to export, then you create CrystalRuntime.Application object, then you loop through the recordset, open your report (here: "oRpt") and set login info. Then set the selectionformula, so that the report displays only the data of the current ID, e.g.:
      oRpt.RecordSelectionFormula = "(" & oRpt.RecordSelectionFormula & ") AND {myTab.myVal}=" & rsc("myVal")
    Then you export the report, move to the next record in recordset, and repeat the loop until recordset.EOF. Then you close recordset and connection.
    Micha

  • PDF generation with FOP throws NPE

    Hi,
    Stack trace
    at oracle.xml.jaxp.JXTransformer.reportXSLException(JXTransformer.java:769)
    at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:342)
    I'm using standard Java 1.4 API calls to create a PDF document from a DOM with Apache FOP 0.20.5.
    The servlet is deployed to Oracle 10g Application Server 9.0.4.0.0. With Tomcat 4.1.30 the same code executes without exceptions
    Because I have to port our web application to Oracle for a new customer it is important for me to get this fixed soon.
    Thank you
    Eckard

    Light at the end of the tunnel: It seems to work when FO and PDF generation are separated. Until now the DOM was piped into FOP who internally created the FO from SAX events and then seems to parse it again to create PDF.
    I separated the two steps: There is no problem in FO generation, but due to a namespace problem subsequent parsing fails
    ("org.apache.fop.apps.FOPException: null:2:10 Root element is missing the namespace declaration: http://www.w3.org/1999/XSL/Format")
    Now the correct exception comes up. Whether FOP SAX event listener is buggy or XML parser's error handling has a problem, I don't know
    Thank you anyway
    Eckard

  • PDF Generation has problems

    Hi there,
    Our company uses Colffusion to make PDFs for our client.
    Recently, the PDF generation is incredible instable, causing
    corrupt PDF files or performance issues.
    I found out, that the problem lies within the including some
    picture. This slows down almost everything or sometimes the
    generation does not happen at all.
    Is there a solution for this? Is there a hot fix for that?
    Thanks for your reply

    Try <cfreport> instead of <cfdocument> which give
    better results for these type of pdf conversion and image
    issues...

  • PDF generation : FileNotFoundException problem

    Hi all,
    I'm developing a dynamic PDF generation module in web application using iText framework. This module creates PDF on the server side then sends it to the client. Sometimes, Even though the PDF file is created on the hard disk, I got FileNotFoundException when calling the servlet that sends it.
    My program is very simple (no thread used) :
    1- The client calls enters some inputs,
    2 - The iText based class generates the PDF,
    3 - The PDF created is saved as an attribute in the client session (HttpSession).
    4 - The request is redirected to servlet that sends the PDF.
    What could be the problem ?
    thx,

    In fact, I don't know what you mean by:
    3 - The PDF created is saved as an attribute in the client session (HttpSession).What do you mean by this? Did you save the proprietry PDF object? Or the java.io.File object? If it is the PDF object, does its class implement java.io.Serializable?
    Um ... Here are some suggestions ...
    First of all, make sure that the file really exists there.
    Secondly, try to write a Java SE program to read the file using the absolute path you provided.
    Then, if the Java SE program works, I think the reason may be that you haven't closed the "OutputStream" which writes the PDF file, or the security settings of your JSPServer prevents you from getting the file.
    Asuka Kenji (UserID = 289)
    (Duke Dollar Hunting now ...)

  • PDF generation in VC

    Hi everybody,
    I need to develop a wizard-like application which ends generating a pdf non-interactive form (i.e. list of class students).
    I would like to use as less coding as possible, so I'm using Visual Composer for the selection steps.
    However the last step should provide the pdf generation and I actually don't know how to integrate these two technologies.
    I know that WDP java provides Adobe Forms natively, but WDP integration with VC is somewhat hard and uncertain, as other sdn posts show, especially when flex is used.
    Can anyone provide help, experiences or example with regard to pdf generation with Visual Composer?
    Thanks
    Point will be awarded
    Vincenzo

    HI
    Used the Web Design API to export to PDF..
    1 Double click on the Output Table
    and choose “Edit” on the toolbar
    2 Specify this button as “Export to
    PDF”, System Action=Hyperlink,
    and then click Formula.
    3 Add the below code in the formula.
    "pcd!3aportal_content!2fcom.sap.pct!2fplatform_a
    dd_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.b
    ex?QUERY=" & STORE@REPTNAME &
    "&BI_COMMAND_1-
    BI_COMMAND_TYPE=EXPORT&BI_COMMAND
    1-EXPORTFORMAT=PDF&BI_COMMAND_1-
    SHOW_EXPORT_DIALOG=X&BI_COMMAND_1-
    null="
    NOTE: This URL is for the Web
    Analyzer PCD Location if Visual
    Composer is on the same server as
    BI-JAVA. If it is not, see the section
    on Mapping External BI locations.
    NOTE: This will export the default
    view of the data service to a PDF
    File. It will not keep filters or
    navigation states.
    Hope I answer your query
    Swapnil

  • Batch PDF Generation

    Hello,
    Currently in the process of migrating to Oracle 10g with HTML DB 1.6. Looking for possible solutions for batch generation of PDF invoices with line item detail, graphs and tabular data display. Batch sizes average around 10,000 invoices so speed and efficiency is important.
    Any comments or suggestions regarding batch PDF generation with XML-XSLT-FOP, PL/PDF, or any other approaches is greatly appreciated.
    Thanks,
    Glenn

    Hello,
    For PDF printing on this scale you would probably be much better off looking at using Oracle Reports.
    The XML-XSLT-FOP solution we created is geared more to provding a PDF download to a user during an active HTML DB session.
    Carl

Maybe you are looking for