Acrobat X SDK - Plug-in for Batch processing - Convert to PDF/A-1b

I've been working on it, researching for a few days and I cannot find a piece of sample code to save a PDDoc object as PDF/A-1b.
I've found solutions (code snipets) to convert Tiff files to PDF, and to create the OCR needed on the PDF's. But I have only being able to save my files as PDF. I have a requirement to save them as PDF Archived.
Please, a piece of code which directs me into the right direction... The closest I've got is something related to the Preflight. I read the Preflight is accessed through the AVCommand (didn't find sample code about that neither). From what I've found, I need to preflight and "add" some fixups or something, before I can save as PDF/A-1b.
I appreciate any Help on this. Thanks.

Found a way - using the AVSaveAsRtfSnip.cpp:
static ACCB1 ASBool ACCB2 myAVConversionFromPDFEnumProc(AVConversionFromPDFHandler handler, AVConversionEnumProcData data)
    AVFileFilterRec filter = handler->convFilter;
    ASUns16 numFileExt = filter.numFileDescs;
    char *kUniqueID = handler->uniqueID;
    // go through the conversion handlers to find a handler for PDF extension files and the unique key matches the PDF/A one.
    for  (ASInt32  i = 0; i < numFileExt; i++)
        if  (strlen(handler->convFilter.fileDescs[i].extension)>0)
            // found it, fill in the handler and return false to stop going on.
            if (!strcmp(handler->convFilter.fileDescs[i].extension, "pdf") && !strcmp(kUniqueID,"com.callas.preflight.pdfa")) {
                RightHandler = handler;
                AVAlertNote("Handler found");
                return  false ;
    return true;
This code is used in my plug-in:
AVConversionEnumFromPDFConverters(myAVConversionFromPDFEnumProc, NULL);
// do conversion
AVConversionStatus stat=AVConversionConvertFromPDFWithHandler(RightHandler, NULL, kAVConversionNoFlags, tempPDF, outputPathName,  ASGetDefaultFileSys(), NULL);
// check the returned status and show message
        if (stat == kAVConversionSuccess)
                        AVAlertNote( "The PDF/A file was saved in output folder." );
        else if (stat == kAVConversionFailed)
                        AVAlertNote( "The PDF/A file conversion failed." );
        else if (stat == kAVConversionSuccessAsync)
                        AVAlertNote( "The conversion will continue asynchronously." );
        else if (stat == kAVConversionCancelled)
                        AVAlertNote( "The conversion was cancelled." );
the handler seems to be found, but I am getting "The PDF/A file conversion failed." every time. Don't know why.

Similar Messages

  • How can I reprint a large # of files in adobe acrobat XI since there's no batch processing feature?

    How can I reprint a large # of files in adobe acrobat XI since there's no batch processing feature?

    One of the available commands in the Action Wizard is Print (under the More
    Tools sub-section). You create a new Action, add that command and then run
    it on your files to print them all.

  • Script for batch processing

    Hello
    I need help
    I created a batch sequence which set watermark and security to pdf files from one directory. Now i want to create another sequence: 1. set security to none and 2. delete watermark.
    I have a problem with set security to none because every time i need change preferences for batch process to security method=password security by hand.
    Maybe there is a way to change this settings with java script in batch "execute java script"?
    Or how i can change with batch sequence a security method from passsword security to "none" if i know password
    Thanks in advance

    Create a "blank" batch process (ie, without any action), but under the Output Options tick the box to optimize the files and set the optimization settings you want to use.

  • Save for Web with Optimize File Size for Batch Process

    I have a client who needs to be able to run a batch process on jpg images ranging in size from 600KB to 2.5MB optimizing their file size as close to 200KB as possible. The feature is included in Photoshop's save for web optimize dialog but it doesn't work for batch processes. If you record an action with the optimize to file size option set it processes all the images in the batch based on the quality settings required to resize the image you used during recording, meaning if the image you recorded was 1.5MB the quality setting might be 70 percent to hit the 200KB mark but that wouldn't be the correct quality setting for a 600KB file nor a 2.5MB file those would either be too small or too large.
    I've done quite a bit of searching both online and in the photoshop scripting forums but I haven't been able to find anything that would point me in the right direction.
    My client's paying for this work so if there's someone who knows how to script this who'd rather be paid than just do some pointing we can arrange for that quite easily.
    Thanks in advance for your assistance and suggestions.
    In case it's of importance we're using Photoshop CS4.

    If you don't mind spending a few bucks on a shareware prog, Jpegsizer has the option to save to a filesize.
    You can find it here.
    http://www.tangotools.com/jpegsizer/register.htm
    There is a free trial version, but you can't save files.

  • Labview for batch processing

    dear sir,
     i am using labview7.0 for scada application  using dsc module. In this application we are aquiring data from instrument. Now i want to develope scada software using labview dsc module for batch processing. But i donot have any idea about batch processing. Please help me to know more about batch processing. And how can i develope the scada software for that
    thanking you
    falgandha

    Hello,
    Batch processing typically involves raw materials that are
    combined to mix or react in a certain sequence over a period of time to
    produce the completed output. Often, different recipes are used to
    combine the materials in different ways and with different sequences to
    change the outcome. Automation is used in batch processing to precisely
    control quantities, times and sequences (description found with a Google search of 'batch processing'), and you can use LabVIEW DSC to control your system.  This is accomplished by using data items called tags bound to your hardware.  To send a command to your hardware, you would write a new value to a tag bound to that hardware.  Hardware could include PLC's, Fieldpoint controllers, RTU's, Modbus devices, etc.  Most commonly, you will connect the tags to your hardware via an OPC server.  OPC servers are available from NI, the PLC manufacturer, and several 3rd-party vendors such as Kepware.
    Providing you with more detailed information will be difficult without a more specific question I can help you with  The DSC Module help and shipping examples will get you started with creating your application, so I'd recommend giving those a look.  If you have a more specifc question about how to do something in LabVIEW, let us know and we'll be glad to help!
    Cheers,
    Matt Pollock
    National Instruments

  • Optimal workflow for batch processing LR files with Nik plug ins

    I have a series of 40 or so landscape images that I would like to efficiently apply a couple of Nik filters to using Color Efex.  I'd appreciate any suggestions re: the most efficient workflow to accomplish this task in a batch processing approach, as my current approach of taking each image into Photoshop, while preserving Smart Filter benefits, is terribly inefficient.  Thanks in advance.

    Hi,
    Sorry but File->Process Multiple Files is the only way and functionalities with which you can batch process your images in PSE. However you can add action in Window->Action Player and apply to your images opened in workspace -
    http://tv.adobe.com/watch/learn-photoshop-elements-11/adding-actions/
    http://forums.adobe.com/message/4736578
    The functionality is available in full functionality product Photoshop via File->Automate->Batch where you can load actions in action panel and they would appear in this dialog box but this is not available in Elements.
    The best way to do here is to load actions in Window->Action Player and open all your images and click on play button one by one and then use Process Multiple Files to save all these in one go as per your preferences of file type, size, name etc.
    Thanks,
    Garry

  • Batch Processing .doc 2 .pdf with Acrobat 8 Pro and Office 2004 on Tiger

    I have been through the forum posts and for each relavent thread there is the easy batch process that can be done to solve this issue - however, the major flaw I have is (as seen in the attachment) no option to be able to open Word docs. How do I enable Acrobat Pro to be able to open word docs??!?!? It really is an answer I have not been able to find on the web anywhere!

    Then what do you make of this persons post: http://forums.adobe.com/message/1098036#1098036
    "Create a new batch sequence. Select 'Run commands on Selected Folder'. In the source file options enable 'Microsoft Office Word'. Then let run the sequence."
    I am able to work out the whole process except in my Acrobat there is no option for "Microsoft Word" as Bernd suggests - how do I get it on the list.

  • How to use the same (selection) paths in multiple images for batch processing?

    I have a whole bunch of photos I need to batch process, but, when creating an action for this, I stumbled upon the problem that the paths I selected with the pen tool, and saved under the "Paths" tab need to be in every image for to be used in the action. I did try to solve it for some time, but couldn't figure out. Any ideas?
    Many Thanks
    Carlos

    Batch processing usually involves using actions you have recorded.  In Action you can insert Path that can be used during processing documents.  Path have some size so you may want to only process document that have the same size.  Look in the Actions Palette fly-out menu for insert path.  It inserts|records the current document work path into the action being worked on and when the action is played it inserts the path into the document as the current work path..

  • Acrobat 10 and plug-ins for Acrobat 9 incompatibility?

    Hi,
    Today I've installed trial version of Acrobat 10 to check if my plug-in for Acrobat 9 could run for it as well. But after Acrobat 10 launch I've got a window:
    Acrobat.exe - Unable to Locate Component
    This application has failed to start because MSVCP80.dll was not found.
    Quick check over plug-ins shipped now inside Acrobat 10 showed me that they are using now MSVCP90.DLLL library instread of MSVCP80.dll used for Acrobat 9.
    Does it mean that we need to recompile our source code with higher version of MS Visual Studio? If so - what version should we use?
    Does it also mean that our plug-ins prepared for Acrobat 9 are incompatible with Acrobat 10 or there is some way they could still run without recompilation?
    Any comments on this would be highly appreciated.

    I always prefer to use shared libraries, i.e. DLLs, in their supposed shared way and not statically embedded into my executable if I know that some environment is pretty stable and customer is aware of various possible DLLs dependencies. If Acrobat could do some job for me - then I'm happy with that without allocation of additional memory/resources needed in case of static linking.
    So, you don't answer my question. What C++ compiler's version should be used to put MSVCP90.DLL reference now instead of previously used MSVCP80.DLL?

  • Image Sequences and Batch Processing: Can opening files from different folders as image sequences be set up as an action for batch processing?

    I have an ongoing series of tasks that necessitates opening the contents of a series of folders as image sequences.
    I'm used to setting up some fairly complex actions, including ones that are intended to be applied to all of the contents of materials in various subfolders, but for some reason I cannot get an Open-with-Image-Sequence-Checked action to set up in a way that will batch process correctly.
    Complicating matters is that the file prefixes (i.e., the letters before the sequential numbers) and the folders will always have different names from the last time the process had to be carried out.
    The steps I would like the action to carry out would be the following:
    1. Open Subfolder 1 - that is, Photoshop shouldn't be looking for a specific folder. It's just *any* subfolder to the current parent folder.
    2. Select first file in sequenced set of files.
    3. Open as an image sequence.
    4. Open Subfolder 2.
    5. Select first file in sequenced set of files.
    6. Open as an image sequence.
    ...rinse and repeat until Photoshop runs out of subfolders to check.
    Am I asking the impossible?
    Thanks!

    I'll look around there,  because I had posted something about this and was told to look here ps-scripts - Browse /Image Processor Pro/v3_0 at SourceForge.net  
    then this is the image here:
    is the result I received.  Granted I'm new to using scripts and actions for image processing large amounts of files.  

  • Best practices for batch processing without SSIS

    Hi,
    The gist of this question is in general how should a C# client insert/update batches records using stored procedures. The ideas I can think of are:
    1) create 1 SP with a parameter of type XML, and pass say 100 records at a time, on 1 thread.  The SP reads the XML as a table and does a single INSERT.
    2) create 1 SP with many parameters, that inserts 1 records.  I can either build a big block of EXEC statements for say 100 records at a time, or call the SP 1 and a time, on 1 thread.  Obviously this seems the slowest.
    3) Parallel processing version of either of the above: Pass 100 records at a time via XML parameter, big block of EXEC statements, or 1 at a time, and use PLINQ to make multiple connections to the database.
    The records will be fairly wide, substantial records.
    Which scenario is likely to be fastest and avoid lock contention?
    (We are doing batch processing and there is not a current SSIS infrastructure, so it's manual: fetch data, call web services, update batches.  I need a batch strategy that doesn't involve SSIS - yet).
    Thanks.

    The "streaming" option you mention in your linked thread sounds interesting, is that a way to input millions of rows at once?  Are they not staged into the tempdb?
    The entire TVP is stored in tempdb before the query/proc is executed.  The advantage of the streaming method is that it eliminates the need to load the entire TVP into memory on either the client or server.  The rowset is streamed to the server
    and SQL Server uses the insert bulk method is to store it in tempdb.  Below is an example C# console app that streams 10M rows as a TVP.
    using System;
    using System.Data;
    using System.Data.SqlClient;
    using System.Collections;
    using System.Collections.Generic;
    using Microsoft.SqlServer.Server;
    namespace ConsoleApplication1
    class Program
    static string connectionString = @"Data Source=.;Initial Catalog=MyDatabase;Integrated Security=SSPI;";
    static void Main(string[] args)
    using(var connection = new SqlConnection(connectionString))
    using(var command = new SqlCommand("dbo.usp_tvp_test", connection))
    command.Parameters.Add("@tvp", SqlDbType.Structured).Value = new Class1();
    command.CommandType = CommandType.StoredProcedure;
    connection.Open();
    command.ExecuteNonQuery();
    connection.Close();
    class Class1 : IEnumerable<SqlDataRecord>
    private SqlMetaData[] metaData = new SqlMetaData[1] { new SqlMetaData("col1", System.Data.SqlDbType.Int) };
    public IEnumerator<SqlDataRecord> GetEnumerator()
    for (int i = 0; i < 10000000; ++i)
    var record = new SqlDataRecord(metaData);
    record.SetInt32(0, i);
    yield return record;
    IEnumerator IEnumerable.GetEnumerator()
    throw new NotImplementedException();
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • Digital Signature automatically inserted for batch processing

    hey guys... hope you can shed some light...
    Is it possible to generate a non-interactive form with a digital signature already in-place?
    We're generating invoices in batch processing and need to have a digital signature in place when we email the PDF to our vendor. The digital signature will always be the same.
    I did see this in the LCD help:
    "You can use Adobe document services to sign a document, validate a
    signature, select the collection of objects to lock, or certify a PDF
    document programmatically. This workflow is ideal when a large number
    of documents require a signature because they can be signed in a batch
    process.
    To sign PDF documents in Adobe document services, configure the web
    service for secure access using the secure sockets layer (SSL). For
    details about this configuration, see the Adobe document services
    Configuration documentation."
    I have a link to the older ADS config document [-Here-|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30a9630b-4f89-2a10-6fab-e311b3ffd9a6] and am in the process of looking through it.
    However, has anyone done something like this already?

    Otto,
    thanks!
    I hadn't checked out the demo - i didn't even know there was a demo program provided . BTW, it's FP_TEST_07.
    I do believe you're correct that it needs to be an interactive form - that wont be an issue for us.
    There is some documentation floating around that we're trying to piece together - we have our Basis team configuring the ADS for SSL connections.
    From what I've seen, I think we have to store our signature in the ADS and attach it at run time.
    Too many moving parts - I don't like it when I have to get more than 1 group involved to complete a develoment item.
    I'll keep this thread updated as we progress.

  • Is it possible to create a hot folder for batch processing?

    I know that it's possible to make a droplet for preflight, but is it possible to create a droplet or a hot folder for another batch processes (mine crops the pages)? Or at least make a keyboard shortcut? It's so unproductive to go Advanced>Document Processing>Batch Processing>Run>Close (Adobe spoiled us with custom shortcuts in other programs)...

    HenrikAppleJespersen wrote:
    is it possible to create a hot spot with apple Airport express 2 generation and use it i a hotel with ethernet wall socket and use it with my Ipad 2?
    Yes, it is one of the things AirPort Express was specifically designed for.

  • How to display custom error message in Job log for batch processing

    Hi All,
    I am rexecuting one R/3 report in batch mode and i want to display all the custom error i have handled in job log when its executed from SM36,SM37. The custom error are like 'Delovery/Shipmet doe not exits' or others which we can display in online mode like message e100(ZFI) or any other way and accordingly we can handle the program control like come out of the program ro leave to transaction'Zxxx' or anything. But i want my program to be executed completely and accumulate all the error in job log of batch processing.
    Can anyone tell me how can i do so...
    Thanks,
    Amrita

    Hi,
    Thats what i have done from the begining. I have written message like this:
    Message i100(ZFI).
    I was hoping to see this message in the log. But i cant see. Can you help me pleae...

  • Batch Processing multiple page pdf

    Using Batch Processing in Acrobat I would like to:
    Extract as single pages from a multiple page pdf.
    I want the resulting pdfs renamed with page numbers. The first few pages of the pdf are roman numeral pages (index) then the rest of the pages would start as page 1 through 99999
    So that the end result would be
    page I_filename.pdf
    page II_filename.pdf
    page III_filename.pdf
    page 1_filename.pdf
    page 2_filename.pdf
    page 3_filename.pdf ect....
    Can someone help?

    Adobe Acrobat Pro has a batch process feature.
    You choose files or a folder with these image files.
    You may apply commands like "Recognize Text (using OCR)" for all chosen files.
    Than all files may be saved as PDF.
    HTH
    Norbert

Maybe you are looking for

  • Motion project imported into FCP looks different...

    I have a Motion project that moves 17 magazine covers across a background. When I preview it in Motion it looks great, but when I import it into FCP the mags overlap and run into each other. What could be happening during import and is there a fix??

  • HELP! How come I can see images I've deleted in iPhoto library folder on iMovie?

    I've deleted these images off my iPhoto library as well a emptied my trash. Although when i go onto iMovie the images are there supposably in the iPhoto library folder but are unable to be located but are able to be viewed. How do I erase this? Do I

  • N73ME Themes Problem after upgrading to new firmwa...

    Hi All, I bought an N73 Music Edition when it was in 3.07 firmware version. Now I have upgraded it using NSU to 4.07. Currently I am facing a problem when trying to switch to some of the themes I installed before upgrade. These themes are not display

  • Re: OutOfMemory with WL6.0 on Solaris 8

     

  • Filling the screen

    How do I fill the screen on Safari pages?  Help menu tells me to click on arrows at top right corner of page but I do not have any arrows. I am running Snow Leopard on my MacBook Pro.  Thanks for any help!