Watermark PDF Documents Service error

Hello,
I created a workflow application to watermark PDF's, and now I'm trying to create a service that does the same thing. The workflow works as an application, but the service is getting an error that reads: "The action “Move Finder Items” encountered an error." The service is included below. Please advise how to fix this, thanks!
Watermark PDF Documents
Compress Images in PDF Documents (as jpeg)
Move Finder Items (to desktop, replacing existing files)
Rename PDF Documents (replace existing files)
Message was edited by: edawg467

You're developing an application? Perhaps post here:
Discussions > Developer Forums > Software Development 101
http://discussions.apple.com/forum.jspa?forumID=728

Similar Messages

  • Error:Adobe document services error: SOAP Runtime Exception: CSoapException

    Dear All,
    While executing an adobe form I am facing the following error:
    Adobe document services error: SOAP Runtime Exception: CSoapExceptionTransport :
    Can you please suggest how the error can be rectified?
    Thanks and regards,
    Atanu
    Edited by: Atanu Dey on Feb 18, 2008 5:31 PM

    Hi, For solving this do one thing:
    The problem is In ECC the service AdobeDocumentServicesSec was set up in SM59 but nothing was configured for SSL. So you have to change this to:
    AdobeDocumentServicesSec.
    Thanks
    please reward points

  • How can I add a picture to the Automator Action "Watermark PDF Documents.action"

    Looks like a bug: under 10.7.2 i cannot add a picture to the Automator Action "Watermark PDF Documents.action".
    Works perfectly under 10.6.8.

    Its a verified bug (Automator - Watermark PDF Documents).
    Please report to http://www.apple.com/feedback/macosx.html
    As a workaround, if you saved the Action in SL, option-click the action, navigate to the file "document.wflow", open in TextEdit, search for the key "fileNames" and replace your old image with the new

  • Automator: Watermark PDF Documents not supplied required data?

    I want to create a letterhead background on a Numbers document so I can email a Numbers document on my letterhead. I haven't found an easy answer so far until I came across the Watermark PDF Document feature in Automator. That would work perfectly, problem is, I can't get it to work at all. No matter what I have added, subtracted or rearranged I get the same results....The action "Watermark PDF Document" was not supplied with the required data. I'm really not sure what I'm doing wrong. Can someone walk me through what it is suppose to look like? I want it as a printer workflow so I can just take the document I'm working on in Numbers, go to the print menu, as if I was going to "print" it in to Preview, and it will convert it to PDF then put the watermark on it. I have done lots of research to try and figure out what I am doing wrong...and I hope it's something really silly because I am getting so frustrated.
    Thanks!

    I couldn't find the QuickLook folder but I took a screen shot.
    What I am asking for is someone to tell me what the workflow should look like.
    I have tried
    -Get Specified Finder Items
    -Launch Application (Preveiw)
    -Watermark PDF Documents
    -Move Finder Items
    -Rename Finder Items/Rename PDF Documents
    -View Results
    ..and all combinations of those items. I tried Watermark PDF Documents by iteslef as a Print Plugin...it gets to Preview but there is no watermark.
    No matter what I try the same result happens "The action 'Watermark PDF Documents' was not supplied with the required data."
    I have tried JPEG and PNG images, several different files with different sizes, shapes and colors. I even tried the images you supplied above. It never works.
    I'd love for someone to be able to make it work on their computer then tell me how they did it so I can duplicate it. If if still doesn't work for me then I'll know it's something to do with my computer.

  • Problem using Automator to create "Watermark PDF Documents"

    After having updated our macs from Mavericks to Yosemite, the "Watermark PDF Documents" using Automator is no longer working.

    Hi Miykael,
    Do you have flash player installed on your system for that browser? Did you tried accessing that pdf file from a different browser?
    I would also recommend you to refer this KB Document : https://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html
    Regards,
    Rahul

  • Automator Watermark PDF Document

    WIth Lion I'm unable to add a .png file (or any image file) as a Watermark in the Automator action: PDF->Watermark PDF Document.
    This Worked for me in Snow Leopard.
    Can someone see if they get this to work?
    Tony

    Thanks.
    I already filed a bug report. 
    If you would like to also: http://www.apple.com/feedback/macosx.html

  • Automator - Watermark PDF Documents

    Since Lion, I'm unable to use the Auromator Action "Watermark PDF Documents"
    I can select a .png file for the watermark, but it does not list in the action (see below)
    Can someone confirm that they are also unable to get this action to work, as I would like to isolate this as a Lion issue and not a system issue on my end.

    The answer to your problem is also on this page:
    http://superuser.com/questions/384967/add-a-header-to-every-page-in-a-pdf
    You can use the Watermark PDF documents action in Automator to add an image on every page of a PDF file. You can specify location, scale, rotation, and opacity.
    Manually fixing the workflow for Mac OS X Lion
    Set up the entire automator workflow as you would, but skip adding the watermark image (you can't). Save the workflow to a file. Right-click the workflow in Finder and select Show Package Contents and navigate into Contents. Opendocument.wflow in a text editor, e.g. TextMate.
    The actual parameters and their values are stored in the ActionParameters dictionary. The relevant key isfilenames. By default, it looks like this:
    <key>ActionParameters</key> <dict> <key>angle</key> <integer>0</integer> <key>fileNames</key> <array/> <key>onePDF</key> <false/>
    Just edit the <array/> declaration and add all files as <string>s, like so:
    <key>fileNames</key> <array> <string>/Users/danielbeck/Desktop/test.png</string> </array>
    Save the file, and reopen the workflow in Automator. The image will be correctly listed, and you can fix its position and other properties, before you apply it.
    Remember that the workflow does not replace the input file as many others do, the output is written to a temporary file. Use the Move Finder Items action afterwards.

  • Adobe document service error: SOAP Runtime Exception

    Hello,
    I am trying to test an Adobe Form created using the ABAP workbench SFP transaction, and getting the following error.
    <b>Adobe document services error: SOAP Runtime Exception: CSoapExceptionTransport : (100101)</b>
    These are the steps I am using.
    1. Call SFP transaction and select an ADOBE Form.
    2. Function key F8 to test
    3. Select the Output device and do "Print Preview"
    Our configuration is : WAS 6.40 SP11 and corresponding ADS level. We used the standard SAP ADS configuration guide to setup.
    Thanks in advance for any reply.
    Regards,
    PK

    Hi PK
    it looks like you have a problem with either your Adobe document services or your RFC configuration. In the current ADS Configuration Guide in the SAP Service Marketplace, you find a configuration quick test in chapter 3.4. The results should tell you if this is the issue.
    There are 2 tests you can run:
    A. Checking the User and Password
    This is a small test where you can check that your entries for user, security role, and passwords are correct.
    Procedure:
    1. Enter the following URL in your web browser:
    http://<server>:<port>/AdobeDocumentServices/Config
    where <server> is the name of the J2EE engine where the Adobe document services are installed and <port> is the port of the J2EE engine.
    Note that the entries in the URL are case-sensitive.
    2. The web page of the web service AdobeDocumentServices is displayed. Choose Test.
    3. Choose rpdata(test.…) .
    4. Choose the Send button without entering any parameters.
    5. Enter the same user name and password as given in the configuration steps earlier.
    6. Choose Submit.
    If the configuration is correct, you get the information about the Version number in the response area.
    If the configuration settings are not correct, the page does not change and Submit still appears.
    B. Checking the ABAP Connection
    This is a small test for checking the RFC destination you have created.
    Procedure
    1. Log on to your SAP system.
    2. Call transaction SE38
    3. Enter the name of the test report: FP_PDF_TEST_OO.
    4. Choose Execute (F8)
    If the configuration is correct, you get the Version Information.
    If the configuration is not correct, you get a dialog box with fields for user and password. Check your configuration settings and also the entries you made when creating the ABAP connection.
    Hope this helps.
    Kind regards,
    Markus Meisl
    SAP NetWeaver Product Management

  • Adobe Document Services Error

    Hello,
       We have installed NW2004s SP7 on AIX. I checked the configuration for Adobe Document Services and is fine. Also I installed Adobe Reader credentials and registered the password. I tried to run a test web dynpro application which uses adobe interactive forms I get this error.
    com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: ADS Render Exception occured. Append "sap-wd-errorPdf=true" to the URL and access the application once again. This time you will get an error PDF. Save the error PDF on the file system. This is a helpful attachment in case of an OSS message.null
    com.adobe.ProcessingError: Credential login error while applying usage rights to PDF: /tmp/adobewa_PSB_3751950/DM2871357407846655448.dir/DM2567886409895288019.tmp
    Specific error information:
    $$$/PDF/PDFCredentialLoginFailure3=alias '^0' was not found
    ReaderRights
    General error information:
    IDL:com/adobe/document/pdf/CredentialLoginFailure:1.0
    Exception Stack Trace:
    com.adobe.ProcessingError: Credential login error while applying usage rights to PDF: /tmp/adobewa_PSB_3751950/DM2871357407846655448.dir/DM2567886409895288019.tmp
    Specific error information:
    $$$/PDF/PDFCredentialLoginFailure3=alias '^0' was not found
    ReaderRights
    General error information:
    IDL:com/adobe/document/pdf/CredentialLoginFailure:1.0
         at com.adobe.ads.request.UsageRights.execute(UsageRights.java:223)
         at com.adobe.BaseADSRequest.doWork(BaseADSRequest.java:110)
         at com.adobe.AdobeDocumentServicesWorker.execute(AdobeDocumentServicesWorker.java:744)
         at com.adobe.AdobeDocumentServicesEJB.processRequest(AdobeDocumentServicesEJB.java:120)
         at com.adobe.AdobeDocumentServicesEJB.rpData(AdobeDocumentServicesEJB.java:100)
         at com.adobe.AdobeDocumentServicesLocalLocalObjectImpl0.rpData(AdobeDocumentServicesLocalLocalObjectImpl0.java:120)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
         at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
         at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)
         at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)
         at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)
         at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)
         at SoapServlet.doPost(SoapServlet.java:51)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java(Compiled Code))
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Inlined Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java(Inlined Compiled Code))
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java(Compiled Code))
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java(Compiled Code))
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java(Compiled Code))
         at java.security.AccessController.doPrivileged1(Native Method)
         at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code))
    Caused by: com.adobe.document.pdf.CredentialLoginFailure: IDL:com/adobe/document/pdf/CredentialLoginFailure:1.0
         at com.adobe.document.pdf.CredentialLoginFailureHelper.read(CredentialLoginFailureHelper.java:67)
         at com.adobe.document.pdf._PDFDocumentStub.setUsageRights(_PDFDocumentStub.java:284)
         at com.adobe.EJB_PDFAgent.setUsageRights(EJB_PDFAgent.java:344)
         at com.adobe.ads.request.UsageRights.execute(UsageRights.java:213)
         ... 32 more
         at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:371)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java:1117)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.afterApplicationModification(ClientComponent.java:887)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRespond(WindowPhaseModel.java:573)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:152)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:330)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:297)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:706)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:660)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:228)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:56)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:40)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java(Compiled Code))
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Inlined Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java(Inlined Compiled Code))
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java(Compiled Code))
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java(Compiled Code))
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java(Compiled Code))
         at java.security.AccessController.doPrivileged1(Native Method)
         at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code))
    Any help would be appreciated
    Thanks
    Anu

    After installing the credentials and registering the password, restart of the J2EE engine has solved my problem.

  • PDF Document Creation Error

    Hi All,
    In one of my webdynpor applications i need to render one PDF document but while i am trying to do the same I am getting this error .
    com.sap.tc.webdynpro.services.exceptions.PDFDocumentCreationException: ../../asianpaints.com/hs_rework_wd/ReworkApplication/~wd_key_80eZ1tsPlvcfxodN/ErrorPDF.pdf?sap-wd-download=1&sap-wd-dl_behaviour=1&sap-wd-cltwndid=b8b061b0906411de8a690050569630a5&sap-wd-appwndid=b8b061b1906411deb5a40050569630a5&sap-wd-norefresh=X
        at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:624)
        at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java:972)
        at com.sap.tc.webdynpro.clientserver.phases.RespondPhase.execute(RespondPhase.java:60)
        at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequestPartly(WindowPhaseModel.java:161)
        at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doProcessRequest(WindowPhaseModel.java:109)
    in the back end or default trace, the message displayed is
    com.adobe.ProcessingException: Failed to connect to a <Render> XML Form Module.
    Please ensure that the XML Form Module service is running.
    I suppose, there is some service with the name "XML Form Module service " and its not running .
    Can any one help me with the ways to run this service ?? or any other suggestion about why the error would be coming
    thanks in advance

    Smriti,
    Did you upload a valid credential into the Visual admin? Also check that your ADSSAP SP level is the same as your J2EE Engine SP level.
    You can restart the XML Form Module service as follows (if I am not wring) :-.
    1.     Logon to Visual Admin
    2.     On the Cluster tab, choose server -> Services -> XML Form Module
    3.     Right click and stop the service.
    4.     Once stopped, right click and start the service
    Chintan

  • Adobe Document Services Error : 405 - Method Not Allowed

         Hi guys
    After Upgrading a JAVA System from NW 7.01 to NW 7.4, I'm experiencing this error when opening url
    http://server:port/AdobeDocumentServices/Config
    Error: com.sap.engine.services.webservices.espbase.server.additions.wsa.WSAddressingException: com.sap.SOA.wsr.030104 - Expected request method POST. Found GET.
    Wizard Configuration for Adobe Document Services was completed without errors
    I have done the User verification as stated by SAP Help and it returned Adobe Version as expected
    Procedure
    In your Internet browser, enter the Web address http://<server>:<port><server> : name of the AS Java where the Adobe Document Services (ADS) are installed<port> : port of the AS Java
    Enter the WS Navigator user and password.
    As Search Type , select Provider System .
    Search for * adobe *.
    In the list, choose AdobeDocumentServicesVi .
    Choose Next .
    Choose rpData .
    Choose Next .The parameters are displayed.
    Choose Next without entering any parameters.
    Enter the user name ADSUser and the respective password and choose OK .
    Also verified all Services and they are Running
    Any idea if on Netweaver 7.4 this URL changed or how can I access ADS?
    Thanks!

    Hi David, thanks for that note, but it mentions that message shows up when you perform an RFC Test
    Im just accessing from url http://server:port/AdobeDocumentServices/Config
    On previous versions you can access to a Welcome Screen.
    Which URL should I use o NW 7.4 to access ADS?
    Thanks!

  • Open pdf documents - sporadic error

    Hi,
    I'm having a prob with downloading pdf files.
    The files are delivered by MS IIS 6.0 webserver and they are gettable by a static link within
    a html document. The files are created with a special tool (iffect) running on an ibm machine
    (i5). Files created with other tools do not cause the problem.
    The Adobe Reader Version is 7.0.
    Sometimes it will need several trials (clicks on the hyperlink) until the file is transferred correctly.
    The error message is different (problem wirh xref entry, error while building a semaphore etc.).
    Acrobat reader is always opening, but it will only show an error message and a blank document.
    Trying 3 to 7 times the file suddenly opened correctly.
    The error occurs using firefox or ie (regardless using activex plugin or opening a new application window).
    It will not happen if the readers "fast web-view" configuration is disabled. The files are < 1 Mbyte and I've
    checked that they are not corrupt (with acrobat preflight). The only difference I've found between those
    documents and others, is that they seem to be "encrypted" but they do not have a password protection.
    I've made a filechek and got the following information:
    - the document do not have tags, the reading direction is probably faulty
    - there is no language specified
    What could be wrong with those files?

    ... yes, we can
    As attachment you'll find a pdf file.

  • Adobe Document Services Error during SP10

    I am having a deployment error on JSPM when trying to deploy adssap component
    part of the log looks as follows:
    Caught exception during deployment from SAP J2EE Engine's offline deploy API:
    com.sap.engine.tools.offlinedeploy.rdb.ODeploymentException: ERROR: Can't deploy component with sda D:\usr\sap\XAP\DVEBMGS00\SDM\root\origin\com.adobe\PDFManipulation\Adobe Systems\1\705.20060907090906.121835\adobe-PDFManipulation.sda
    com.sap.engine.frame.core.configuration.ConfigurationException: Error occurred during DB access: ,
    Anyone has found something similar?
    Thanks.

    Hello,
    this is not really a problem of the ADS, but a problem of deployment. I can only recommend you to open a thread in the WebAS General topic.
    Best regards,
    Dezso

  • Adobe Document Service error

    Hello, i have the following problem and i do this procedure as described:
    Checking the ABAP Connection:
    Procedure:
    1. Logon to your SAP Web
    2. Call transaction SE38
    3. Enter the name of the test report FP_PDF_TEST_OO
    4. Choose execute (F8)
    And this is what happens after I execute F8
    El programa FP_PDF_TEST_OO no existe "The program FP_PDF_TEST_OO doesnt exist"
    Nº message: DS017
    Diagnóstico "Diagnose"
    El programa con el nombre indicado aún no existe.
    "The program with the name indicated still doesnt exist"
    I created the ABAP Connection already and I tested the connection and it turns out OK, here´s what it shows:
    ~status_reason OK
    The connection says its ok, can anyone help me please? Because the connection EXISTS and it says it´s alright.
    PD. I logon with the user j2ee_admin to do this configuration.
    Thanks!!

    Hi,
    The program name is FP_PDF_TEST_00, the last 2 are
    numerical "zeros" and not the alphabet "O".
    Regards
    Srikishan

  • Automator Watermark PDF Workflow

    Seems with every major upgrade, Apple breaks the Automator Watermark PDF Workflow.
    Can someone test this workflow in Yosemite so I know if the problem I'm having is with OS X 10.10.

    Hello
    Under 10.6.8, Watermark PDF Documents.action/Contents/Resources/tool.py works happily without any errors when invoked as follows with a.pdf and watermark.png in ~/desktop/test/ :
    #!/bin/bash
    py='/System/Library/Automator/Watermark PDF Documents.action/Contents/Resources/tool.py'
    cd ~/desktop/test || exit
    args=(
        --input     a.pdf
        --output    a_wm.pdf
        --verbose
        --over
        --xOffset   0.0
        --yOffset   -150.0
        --angle     300.0
        --scale     0.3
        --opacity   0.1
        watermark.png
    "$py" "${args[@]}"
    If the said error – ValueError: depythonifying 'pointer', got 'str' – is raised at the line:
    provider = CGDataProviderCreateWithFilename(imagePath)
    I'd think it is because imagePath is not a C string pointer which the function expects but a CFStringRef or something which is implicitly converted from python string. Since I don't get this error with pyobjc 2.2b3 & python 2.6 under 10.6.8, it is caused by something introduced in later versions.
    Anyway, the statement in question may be replaced with the following statements if it helps:
    url = CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault, imagePath, len(imagePath), False)
    provider = CGDataProviderCreateWithURL(url)
    I modified the tool.py with these changes along with other minor fixes and run it successfully under 10.6.8. I'm not sure at all whether it works under later OSes as well. And even if it does, editing tool.py will require the Automator action to be re-codesigned.
    Here's the revised tool.py.
    #!/usr/bin/python
    # Watermark each page in a PDF document
    import sys #, os
    import getopt
    import math
    from Quartz.CoreGraphics import *
    from Quartz.ImageIO import *
    def drawWatermark(ctx, image, xOffset, yOffset, angle, scale, opacity):
        if image:
            imageWidth = CGImageGetWidth(image)
            imageHeight = CGImageGetHeight(image)
            imageBox = CGRectMake(0, 0, imageWidth, imageHeight)
            CGContextSaveGState(ctx)
            CGContextSetAlpha(ctx, opacity)
            CGContextTranslateCTM(ctx, xOffset, yOffset)
            CGContextScaleCTM(ctx, scale, scale)
            CGContextTranslateCTM(ctx, imageWidth / 2, imageHeight / 2)
            CGContextRotateCTM(ctx, angle * math.pi / 180)
            CGContextTranslateCTM(ctx, -imageWidth / 2, -imageHeight / 2)
            CGContextDrawImage(ctx, imageBox, image)
            CGContextRestoreGState(ctx)
    def createImage(imagePath):
        image = None
        # provider = CGDataProviderCreateWithFilename(imagePath)    # FIXED: replaced by the following CGDataProviderCreateWithURL()
        url = CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault, imagePath, len(imagePath), False)
        provider = CGDataProviderCreateWithURL(url)
        if provider:
            imageSrc = CGImageSourceCreateWithDataProvider(provider, None)
            if imageSrc:
                image = CGImageSourceCreateImageAtIndex(imageSrc, 0, None)
        if not image:
            print "Cannot import the image from file %s" % imagePath
        return image
    def watermark(inputFile, watermarkFiles, outputFile, under, xOffset, yOffset, angle, scale, opacity, verbose):
        images = map(createImage, watermarkFiles)
        ctx = CGPDFContextCreateWithURL(CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault, outputFile, len(outputFile), False), None, None)
        if ctx:
            pdf = CGPDFDocumentCreateWithURL(CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault, inputFile, len(inputFile), False))
            if pdf:
                for i in range(1, CGPDFDocumentGetNumberOfPages(pdf) + 1):
                    image = images[i % len(images) - 1]
                    page = CGPDFDocumentGetPage(pdf, i)
                    if page:
                        mediaBox = CGPDFPageGetBoxRect(page, kCGPDFMediaBox)
                        if CGRectIsEmpty(mediaBox):
                            mediaBox = None
                        CGContextBeginPage(ctx, mediaBox)
                        if under:
                            drawWatermark(ctx, image, xOffset, yOffset, angle, scale, opacity)
                        CGContextDrawPDFPage(ctx, page)
                        if not under:
                            drawWatermark(ctx, image, xOffset, yOffset, angle, scale, opacity)
                        CGContextEndPage(ctx)
                del pdf
            CGPDFContextClose(ctx)
            del ctx
    def main(argv):
        verbose = False
        readFilename = None
        writeFilename = None
        under = False
        xOffset = 0.0   # FIXED: changed to float value
        yOffset = 0.0   # FIXED: changed to float value
        angle = 0.0     # FIXED: changed to float value
        scale = 1.0     # FIXED: added
        opacity = 1.0
        # Parse the command line options
        try:
            options, args = getopt.getopt(argv, "vutx:y:a:p:s:i:o:", ["verbose", "under", "over", "xOffset=", "yOffset=", "angle=", "opacity=", "scale=", "input=", "output=", ])
        except getopt.GetoptError:
            usage()
            sys.exit(2)
        for option, arg in options:
            print option, arg
            if option in ("-i", "--input") :
                if verbose:
                    print "Reading pages from %s." % (arg)
                readFilename = arg
            elif option in ("-o", "--output") :
                if verbose:
                    print "Setting %s as the output." % (arg)
                writeFilename = arg
            elif option in ("-v", "--verbose") :
                print "Verbose mode enabled."
                verbose = True
            elif option in ("-u", "--under"):
                print "watermark under PDF"
                under = True
            elif option in ("-t", "--over"):    # FIXED: changed to "-t" from "t"
                print "watermark over PDF"
                under = False
            elif option in ("-x", "--xOffset"):
                xOffset = float(arg)
            elif option in ("-y", "--yOffset"):
                yOffset = float(arg)
            elif option in ("-a", "--angle"):
                angle = -float(arg)
            elif option in ("-s", "--scale"):
                scale = float(arg)
            elif option in ("-p", "--opacity"):
                opacity = float(arg)
            else:
                print "Unknown argument: %s" % (option)
        if (len(args) > 0):
            watermark(readFilename, args, writeFilename, under, xOffset, yOffset, angle, scale, opacity, verbose);
        else:
            shutil.copyfile(readFilename, writeFilename);
    def usage():
        print "Usage: watermark --input <file> --output <file> <watermark files>..."
    if __name__ == "__main__":
        print sys.argv
        main(sys.argv[1:])
    All the best,
    H

Maybe you are looking for

  • How do I print double sided on my mac? (OSX)?

    I used to have a windows PC with office 07 on it, and i still have the same canon ip1800. This is NOT a double side supported printer, but in office, it gave me the option to print half the document, and then turning the pages that my printer printed

  • 10.3.9 does not print anymore , but command lp does !!

    Hi to everybody, im using a HP Laserjet with my Imac connected via ethernet and appletalk. Since some days im not able to print anymore. If I try to print something with apples standard text-editor a requester is shown immediately saying "error while

  • Toshiba 19" LCD TV

    I purchased a Toshiba 19" LCD TV on Dec. 10, 2008.  Being that the item was not in stock, I arranged for an in-store pick-up on Dec. 17.  I picked up the tv up on Dec. 19.  Two days later I saw a Best Buy flyer stating that the set I had just picked

  • Adobe Reader 8.1.2 wont finish install and wont uninstall

    I downloaded adobe 8.1.2 onto my Toshiba laptop and it fails to open pdf files on my Windows Vista 64 bit version. i removed all i could and Adobe wont uninstall i get an error message 2330. i tried to install Adobe 9 on top but it would only go as f

  • Running two displays from MBP Retina under windows

    I'm looking at purchasing a MBP Retina 13".  I have two external monitors that can accept HDMI and DVI (neither can do displayport).  Some software that I run requires me to sometimes boot into windows.  Under windows 7, can I output a DVI signal fro