AFP and PDF Batch Print

Hi,
I have a single step batching process managing my formlist creation. In this process I execute PDF printing and AFP printing. PDF print with RULMultiFilePrint callback funciton.
When executing gendata it prints my PDFs as we build it. but AFP batch dosen't run. AFP file is created but no data inside. BUT! if we execute genprint It creates the AFP as we build it.
Any suggestions?
this is my AFGJOB file:
/* JDT Rules for MultiStep Processing */
<Base Rules>
;RULStandardJobProc;1;Always the first job level rule;
;SetErrHdr;1;*:;
;SetErrHdr;1;*:------------------------------------------------;
;SetErrHdr;1;*: Documaker Data Generation (Base);
;SetErrHdr;1;***: Company: ***Company***;
;SetErrHdr;1;***: LOB: ***LOB***;
;SetErrHdr;1;***: Policy #: ***POLICYNUM***;
;SetErrHdr;1;*:------------------------------------------------;
;JobInit1;;;
;InitOvFlw;1;;
;InitPrint;;;
/* Every form set in this base uses these rules. */
<Base Form Set Rules>
;NoGenTrnTransactionProc;2;required to combine gentrn/gendata into single step;
;BuildFormList;2;;
;LoadRcpTbl;2;;
;RunSetRcpTbl;2;;
;LoadExtractData;2;;
;USEXMLExtract;2;;
;ResetOvFlw;2;;
;UpdatePOLFile;2;;
;PrintFormset;2;required to combine gendata/genprint into single step;
;WriteOutput;2;;
;WriteNaFile;2;;
;BatchingByPageCountPerRecipINI;;;
;BatchingByRecipINI;2;;
;IfRecipUsed;;BATCH1=Cliente;
;ProcessQueue;2;PostPaginationQueue;
;PaginateAndPropogate;2;;
/* Every image in this base uses these rules. */
<Base Image Rules>
;RULStandardImageProc;3;Always the first image level rule;
/* Every field in this base uses these rules. */
<Base Field Rules>
;RULStandardFieldProc;4;Always the first field level rule;

You can accomplish what you desire in one of two ways.
Lets keep it simple for now: create two recipients per form
Cliente and Cliente1 where one is intended for AFP and the other intended for PDF. I am assuming you are using Documaker 11.3 or better
Two batches would be created and the print types adjusted for each batch.
Based on your AFGJOB the entries should be as follows.
;BatchingByPageCountPerRecipINI;;;
;BatchingByRecipINI;2;;
You will also need a corresponding FSISYS/FSIUSER entry that routes the recipient into its own batch
< BatchingByRecip >
Batch_Recip_Def = TRUE;"BATCH1";CLIENTE
Batch_Recip_Def = TRUE;"BATCH2";CLIENTE1
DefaultBatch = ERROR
This can be configured using the DM Studio UI.
Where BATCH1 is PDF and BATCH2 is AFP.
If you then need to adjust by page count, you will need to create additional batches.
For example if
AFP BATCH2 < 5 pages
AFP BATCH3 > 4 pages
There is a page count entry in the batching
where BATCH2 1-4
and BATCH3 5-999
Your INI files changes should then be reflected as follows.
< BatchingByRecip >
Batch_Recip_Def = TRUE;"BATCH1";CLIENTE
Batch_Recip_Def = TRUE;"BATCH2";CLIENTE1
Batch_Recip_Def = TRUE;"BATCH3";CLIENTE1
DefaultBatch = ERROR
As each transaction runs through Documaker this separates the PDF form AFP through the recipient logic then the system takes out the 1-4 page count transactions into BATCH 2 and the 5-999 page counts into BATCH3. each transaction runs through this logic and once it has found its home in a batch, the system moves on.
You can get much more creative that this with some file manipulations, but this keeps it the simplest since I am guessing that there is no need to separate the PDF generation by page count.

Similar Messages

  • "cgpdftops quit unexpectedly" when drag-and-drop/batch printing in Yosemite

    I have an annoying little frustration when printing certain PDF documents in Yosemite. It happens when I drag and drop documents from Finder onto an installed printer--i.e., dragging the document file onto the printer icon that has been copied to the desktop (essentially batch printing). Whenever this happens, I get a "Stopped - 'Filter' failed" error message, along with a "cgpdftops quit unexpectedly" lengthy problem report. After tinkering around for a while, I discovered that this only happens when the document is in landscape mode--if I drag and drop a document in portrait mode, it prints just fine this way. Furthermore, if I actually open the PDF document in Adobe Reader--even the landscape ones--I can print them all perfectly fine that way. It ONLY happens on LANDSCAPE documents when using the drag-and-drop print method. VERY STRANGE!
    A little background--I found this out when one of my users was attempting to do this with her newly-upgraded iMac and started receiving this message. She does a lot of batch printing because of the number of files she has to routinely deal with, and this saves her a lot of time over opening each file individually. She says she never had an issue with this when she was on Mavericks, and it only started when she upgraded to Yosemite. I ended up trying this on my own Macbook Pro running Yosemite and was able to replicate the problem on it. I've also replicated the problem on more than one printer of different brands, so I can eliminate that being the source. My user ends up sending the files to her coworker, who is running Mavericks, and is able to batch print the files successfully.
    I have been able to whittle it down to the issue simply being printing any PDF file in landscape mode to any printer from any Mac running Yosemite using the drag-and-drop/batch printing method. Numerous Google searches have gotten me nowhere with this. Some point to similar issues which throw this error message, but none specifically point to this particular issue. Certainly I can't be the only person who has tried this...
    Does anyone have any ideas?? I'm all out...

    How much storage space is left on the boot drive of the Yosemite iMac where the CUPS cgpdftops filter croaks? Are the printer drivers for the problematic printers current for Yosemite. Have you removed and reinstalled current printer drivers for the associated printers?

  • Adobe Reader PDF Batch Print

    Question:
    Is it possible to build a batch printer using the SDK and libraries
    available with Adobe Reader?
    Environment:
    Win XP and Win 7
    Client machine install
    Adobe Reader - required version can be installed
    VB6 or C# .NET
    Experience To Date:
    The ActiveX control works fine for loading/displaying a PDF, and
    a single file with any number of pages can easily be printed via
    automation.  The print process does not cause the application
    to pause until the printAllFit method completes.  The LoadFile
    method on the next file returns True even if the current file is
    still being printed and, therefore, the next file does not load.
    General Comments:
    Anybody else find it a bit odd that the SDK documentation is
    not a single, down-loadable PDF file?

    I do that in Perl
    (but it is no problem to translate the code into VB or C++)
    http://blogs.perl.org/users/rtillian/2011/10/batch-printing-on-command-line-via-print-driv er.html

  • Barcode and PDF document printing in SAP MII

    Hi All,
    I am using SAP MII 15.0, one of my requirement is to print the Barcode and PDF file automatically.
    I have came across the link below which tells to print the label
    http://scn.sap.com/community/manufacturing/mii/blog/2014/08/17/industrial-label-printing-with-mii
    In the above document, I can send only the string as a message in the PCo query CALL SEND(address=’127.0.0.1’, port=’20000’, message=’Hello World’);
    Is that possible to send the document to the printer?
    I am using the PDF action block.Can any one tell me how to print the document automatically?
    Also, if my printer is connected to client, how it can be printed from client PC?
    Regards
    G.P

    Hi chris,
    I have to do via SAP MII and their is no other option.
    In the above document, I can send only the string as a message in the PCo query
    CALL SEND(address=’127.0.0.1’, port=’20000’, message=’Hello World’);
    Is that possible to send the document from MII?
    Is there any command like below for pushing the document to the printer so that it will be useful?
    CALL SEND(address=’127.0.0.1’, port=’20000’, message=’Hello World’);
    Also please let me know any idea of printer used, which will help ?
    Regards
    G.P

  • Batch printing 1st page always bad

    I have Adobe Acrobat 8 Professional. I have all of the updates, running on XP pro.
    Whenever I batch print with it the 1st pdf is always to the wrong scale. All of the rest of the pdf's will be correct.
    The pdf's are drawings. The 1st pdf will not show the complete drawing.
    If I change the order then the pdf that was wrong will be correct and another pdf will be to the wrong scale.
    I have this problem no matter how I try to do the batch printing.
    I have moved the files to a directory and then batch printed them soley from Acrobat.
    I can open an email in Outlook 2007 and tell it to print attachements, same problem.
    I have tried it with numerous pdf's. It is always the 1st pdf in the batch. All the rest of the pdf's will be correct
    Does anyone have any suggestions?
    Thank You

    Hello Jeff,
    The problem you are having with the Canon PS and UFR2 driver is caused by the Paper Size > US Letter not being listed as a supported paper size. Instead, these two drivers have Letter, not US Letter. Therefore, when you do have the Page Setup > Format set to Any Printer and the Paper Size set to US Letter, the finishing options are not available.
    You will notice an interesting phenomena via the Page Setup pane. Open an application like TextEdit, go to Page Setup and have the Format set to Any Printer and the Paper Size set to US Letter. Then change the Format menu to the Canon driver and watch the Paper Size automatically change to Letter.
    The solution to this is to delete the CanonPS and UFR2 driver and use the new Canon 'CUPS' PS v2.11 driver. This driver has US Letter as a supported paper size, so you can leave 'Format for' at 'Any Printer'. And the driver supports both the 5075 and C5185, so you models are covered. Note that you will still have to use the Fiery driver for the other C5185.
    Re the mailbox, the format setting won't affect this function. Your comment about PCL not supporting it is interesting. The PCL driver on Windoze definitely works with mailbox so you must have some other gremlins if that is not available.
    Regards,
    PaHu

  • PDF's printing as thumbnails

    User on a laptop printing to a new Lexmark C748de printer, all his pdf's come out as thumbnails, some mirrored. I log in to the laptop and pdf's print normal. Using Window 7 Professional on the company network. User can print to the Dell MFP with no issues. Driver for the Lexmark has been re-installed 3 times. Using Adobe XI.

    Adobe Reader X; printer driver shows document size as 8.5X11 and the print preview appears to fill the 8.5X11 space. Document and paper size both set at 8.5X11. Also verify portrait/landscape is set properly - print 100% - print actual size - choose paper source by pdf page size - output size same as original size - uncheck shrink to fit...

  • Batch printing in Smartforms

    hi guys,
    i have a problem to perform batch printing and process batch printing at a button click and here is the detail explanation of the problem.
    The Front End Screen will be a selection screen with (1) radio buttons listing all form letters, a field for Date of the form, (2) a field for Employee Number (PERNR), (3) a field for Request Date, (4) a field for Request Reason, (5) <b>a selection for Print Now or Print Batch</b>, and (6) <b>a Process Batch button</b>.
    when Radio Button for one of the Forms selected, the User will then select the Print Now or Print Batch option. If the Print Now option was selected, the selected form will be immediately generated and printed. If the Print Batch option has been selected, the data on the Front End Screen will be stored in a batch file for processing and printing en masse.
    Screen when ready to print the batch file of forms. When the Process Batch button is selected, any forms that are stored in the batch file are then processed (created and printed). Forms may be printed multiple times (one for the employee, one for the employee’s supervisor and one for the personnel file). Each form detailed below will indicate the number of copies to be printed.

    Printing a Smartform is always about calling the function module generated for this form. Calling the FM is done from a printing program.
    Put this program into a job using
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
    " FOR each PERNR
      SUBMIT submitable TO SAP-SPOOL
                        SPOOL PARAMETERS print_parameters
                        WITHOUT SPOOL DYNPRO
                        VIA JOB name NUMBER number
                        AND RETURN.
    ENDIF.
    then when you want to execute the job, call this:
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
        ENDIF.
    ENDIF.

  • Is it possible to batch print .pdf AND .doc files together?

    I need to let users to batch print a set of files that includes both .PDFs and .DOCs. Since <cfprint> allows .PDF files only, what would you suggest?
    Thanks!

    el_sim wrote:
    Unfortunately, it's not an option because I need to allow users to batch print and I have no info about their network printer configuration
    That raises a large RED Flag that you may be misunderstanding the <cfprint...> functionality.  <cfprint...> can NOT print to a printer that is configured to the clients computer.  So if that is what you are looking to do, you need to be looking at Client side technology.  But be aware, that current, common, browser based web applications generally have very limited connections to client hardware.  If you are willing to get into Flex, Flash, Air (or another company's technologies) you could probably do more.  But HTML and JavaScript currently do not have much access to the hardware of a client computer.
    The <cfprint...> tag is designed to send a print job from the SERVER running the ColdFusion application to a printer connected to that server.  IF you are writing programs with no knowledge of the server network configurations (I.E. an application meant to be sold to various customers) this becomes much more difficult to do.  But if you are writing a CFML application to be run on a known network, which is what many of us do, then it should be pretty easy to know what printers are connected to the server running ColdFusion and figure out what capabilities those printers have.

  • Can I batch print PDF files with Adobe Acrobat Reader X

    can I batch print PDF files with Adobe Acrobat Reader X?  I have tried from Windows Exploer (Windows XP) and it looks like the files are opening but they do not print.
    Pat

    Very strange!  What is your installed Reader version?
    Try disabling Protected Mode in Adobe Reader [Edit | Preferences | Security (Enhanced)].

  • A solution for batch print PDF documents

    Dear,
       I use a command line to auto print some PDF documents as below:
       C:\>AcroRd32.exe /h /t PDF_file_name printer_name
       the printing is no problem.
       But when I use the command line to print a large number of PDF files, there are a problem, for example:
       There are 3 PDFs that I want to print, they are 1.pdf, 2.pdf and 3.pdf
       I sent command one by one like below.
      C:\>AcroRd32.exe /h /t 1.pdf printer_name
      C:\>AcroRd32.exe /h /t 2.pdf printer_name
      C:\>AcroRd32.exe /h /t 3.pdf printer_name
      But the hard copy from the print are:
      first print: 1.pdf
      2nd print: 3.pdf
      3rd print:  2.pdf
      what can I do for this case, I want to get the output seq. will be 1.pdf, 2.pdf, 3.pdf.
      Thanks.

    KingPool's snarky response notwithstanding (he appears to have some financial interest in “pushing” sales of PrimoPDF), your need is real and your observations do correspond to the reality of printing. The fact is that when you use spooling under Windows, the application program actually can complete spooling of the file to the printer before that spooled output is ready to be actually transmitted to the device. The print process is a multiple step, asynchronous process.
    To absolutely force printing in an exact order as per your scenario, go to the printer's Properties and select the Advanced tab. The printer is probably currently set to Spool print documents so program finishes printing faster with either the Start printing immediately or the Start printing after last page is spooled option selected. Change that to the Print directly to the printer option and then press OK. This will force printing in the order that you specify. Note however, that this forces Reader to wait as the document is fully printed and then terminate. You should reset that spooling option when you are done with this batch printing operation to regain system performance.
    Alternatively, another approach you could try would be to hold the particular print queue before running your commands. Then, after ascertaining that all the print jobs are on the queue and ready to be printed, release the queue. The jobs should print in the order queued. And finally, if there still is a mis-ordering of the jobs, after holding the entire queue, put a hold on all the jobs, release the printer queue, and then release the jobs in desired order.
              - Dov

  • How to batch print multiple PDFs in Mac OS X?

    Does anyone know of any new software that allows one to batch print multiple PDF files with a print dialogue for the first file, followed by dialogue-less printing for the rest?
    I work for an architect's firm and we often find ourselves printing dozens of A1 PDFs, going through the print dialogue window for each file.
    We used to be able to batch print when Preview.app could open multiple PDFs in one window; it lost this capability in a regression when it gained bookmarks and we've been living in batch print stone age ever since.
    (A desktop printer doesn't work by the way)

    Lamont E wrote:
    Open one of the PDFs in Preview then drag the rest of the files into the sidebar. Print the resulting file. If you don't want to save it as a single PDF just select 'Don't Save' when you exit.
    Wow! I've been asking this question repeatedly for a couple of years now and you're the first person to mention this. Thanks a lot. There will be some happy campers in our office, I tell ya.
    I missed it because all the large PDFs we create include a table of contents and you have to switch to thumbnail view before you can drag and drop additional PDFs.
    With the type of files we produce It takes 30 seconds or so to add 8 files together, so it's not ideal but it's a lot faster and more convenient than Acrobat Pro or printing each file separately.
    Another option is to open the printer window and drag all the files into it. They will print automatically with no dialog box.
    This doesn't work because you can't choose the size of paper you want to print to.
    Thanks again, your first post too.

  • Batch Print PDF

    Hello,
    I was not sure which forum to post this in, so please forgive me if this is the wrong one.
    We have a web site that allows our managers to login and fill out reports.  The data is used to create a PDF file using a utility called ASPpdf from persists.com.  Currently we store the pdf files in a folder and email certain ones when the document is created.
    We now want to print them either as they are created or store them in a folder and have them printed at cetain times during the day.
    I am trying to write a batch file that would be setup in the jobscheduler to run at specified times during the day. I also have found a little information about command line execution to print the pdfs, but that has always opened multiple instances of Adobe Reader X and left them open.
    Does anyone have an idea how to do this?  If it comes down to purchasing another Adober product, we would not have an issue with that - I am lost at this point as to how to proceed.
    Any help would be appreciated.
    Thank you in advance,
    George

    I tried the following code that which comes directly from the Apex Stored procedure PRINT_PDF.
    The APEX_UTIL.GET_PRINT_DOCUMENT function returns NULL.
    declare
        v_filename varchar2(1000);
        v_pdf_blob blob;
    pnum number;
    begin
    v_filename := 'TEST_' || to_char(sysdate,'yyyymmdd');
    pnum := --Hidden from Post;
    dbms_output.put_line('Security ID: ' || pnum);
    wwv_flow_api.set_security_group_id(p_security_group_id=>nvl(wwv_flow_application_install.get_workspace_id,pnum));
    v_pdf_blob := APEX_UTIL.GET_PRINT_DOCUMENT (
                                           p_application_id      =>  121,
                                           p_report_query_name   => 'QS_CERT_QUERY_TEST',
                                           p_report_layout_name  => 'QS_CERT_QUERY',
                                           p_report_layout_type  => 'xsl-fo',
                                           p_document_format     => 'pdf');
    insert into printed_pdfs (filename, stored_pdf, record_created_By_person, record_created_on_date)
                      values  (v_filename||'.pdf', v_pdf_blob, 'Name', sysdate);
    end;
    Any idea on what is wrong or how to make it work.

  • Batch Printing PDF files in Sharepoint

    We are migrating our production documents into an existing WSS2.0 environment.  The documents are mainly .PDF files and I am trying to find a way to allow a user to select a subset of files within a view and once done, submit all of them to be printed. 
    I envision a Windows File Explorer window that a user could check only the files desired and then click a single print button to launch the batch print.  I have done some searching, but the the commercial tools I have found are very expensive.  Anyone
    know of another way to accomplish this need?

    Hi Vondie,
    I found a post in this thread may helpful for your issue.
    http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/8ce3dd94-ff2c-4c3c-ba85-f67b9dd2f2e8/
    It is suggested you to start by looking into the
    PDF Forms
    parser on Code project to get you started. Here is a list of open
    source pdf software for C# that might help you.
    Or try to post a how to bulk print PDF questions in the
    Adobe Online Forums.
    Thanks for your understanding.
    Lambert Qin
    TechNet Subscriber Support
    in forum
    If you have any feedback on our support, please contact
    [email protected]
    Sincerely,
    Lambert Qin
    Posting is provided "AS IS" with no warranties, and confers no rights.

  • Batch print to pdf

    Hi
    I've been trying for some time now to figure out how to turn 6000 html files into pdf in the exact same way that using File - Print... "Adobe PDF" - Print creates PDFs. unfortunately File - Print only works on one file at a time. And so far every batch conversion i've attempted doesnt create the same clean output that printing to pdf does. at the moment i'm wondering if there's some setting in acrobat that might be responsible, but i'm here to ask if there's some way to code the process of printing to pdf (File - Print... "Adobe PDF" - Print creates PDFs) so i can make it work on my 6000 files.
    Any help or direction would be appreciated. despite spending days on this i really dont know what i'm doing.

    Are you doing this on a desktop or server? What OS platform? Are you comfortable w/any programming languages?
    Leonard

  • HT2488 Batch Printing and Edit on circumstances?

    So I make binders on a regular basis and am just getting into scripts and FileMaker Pro and all sorts of happy things. I was wondering if it was possible to do a list of commands with Automator.
    What I want to do is have Automator run a workflow, but with selected files, not predetermined files. For instance, I do not want to have to go into the workflow and drag and drop the files in every time. I just want to select them and then go to the services option under the Finder menu.
    Then I want to edit them in Preview, but I want the edits to be automatic. Specifically, any PDF file with an odd number of pages gets a blank page inserted at the end and any PDF file with an even numebr of pages does not (this is so that I can do a batch print and do double sided with a printer that cannot do double sided so odd sides first, then even sides).
    Then it should print the batch as a PDF and ask me where to put it, and finally print the PDF it just saved doing odd sides only, then waiting, then even sides only.
    Is this possible with workflow, an dif not what can do this?
    Thank you for any assistance, I can't find anything that will allow for this to go faster unless I write a script that does all this for me, which I might end up doing...as soon as I learn how to.
    -Kristof

    What actions are in the in the workflow that did print without the dialog? Since that one worked with a single item, you might try the *Dispense Items Incrementally* action from http://automator.us/leopard/downloads/index.html

Maybe you are looking for

  • Purpose of declaring the method or class or static and as instance

    what is the purpose of declaring a method in a class or the class itself as static. Does it mean we cannot create a copy of that class or method if we declare it as static. if so then why do they dont want that class to be created as a copy ? Why do

  • HR get details

    Hi Friends, I need get the details of below persons. If i provide superior ( user id OR Name OR personnel number ) i need to get all persons under that superior. Is there any BAPI or Function module or any standard report. Thanks, Kumar

  • Why does my iPod drain battery so fast :(

    I purchased an iPod Touch 4G 8GB in white and everything seems to work fine until recently, when I started to notice that the battery dies too quickly. I have all the settings to minimum (push notifications, brightness, bluetooth off, etc.) . what do

  • Some commands have suddenly stopped working, e.g.; move to, open with now give no list of options

    in pnotoshsop CC some commands have suddenly stopped working e.g.; move to, open with provide no list of  options

  • Flex and search engines

    Hi all, I looked at old messages, but couldnt really find an answer in recent subjects. I had my website in HTML before, and it was pretty high indexed in all the search engines. Now I moved exactly the same information into a flex application and it