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.

Similar Messages

  • 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.

  • 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

  • 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 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

  • 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

  • Posting Document not created (export data missing)

    We are working on ECC 6.0 and during creation of Cancellation Billing document type IVS for the Intercompany billing, the document did not create Accounting document giving the Posting status as G - Posting document not created (export data missing). However checked the Foreign trade data and the system states that Foreign trade is complete.
    Can any one suggest the solution for this?
    Thanks.

    Hello Mohammad,
    About this issue, the incompletion of this cancellation document
    arises might because the reference delivery has been archived/deleted.
    This is likely due to your current copy control settings (VTFL).
    If you have set ' ', in the export determination field this means that
    there is a common 'exnum' key between the delivery and billing documents
    LIKP-EXNUM & VBRK-EXNUM are the same.
    The result of deleting the delivery is that you also delete the FT data
    for the delivery, Because the billing document and delivery share the
    same foreign trade table entries, you have in effect deleted the FT data
    of the billing document too. This would most likely go unnoticed but if
    you then cancel the invoice the system has no FT to copy into the new
    cancellation billing document, which leads to this issue.
    Firstly you should set the export determination flag in the copy control
    of the delivery & billing documents. This will avoid this issue in the
    future. Set it to to 'A' or 'B' depending on your requirements.
    For the incomplete cancellation billing document, you could use userexit to
    set it as complete:
    You can use transaction CMOD.
    Create a project for example FT project button create short text: ....
    drop button Enhancement assignment & save use for example local object.
    Use the F4-help for Enhancement and look for V50EPROP.
    Drop button Components:
    here you will find EXIT_SAPLV50E_005 and EXIT_SAPLV50E_006
    In the userexits doubleclick on the includes ZXV50U05 and ZXV50U06
    The coding in the userexits should be: C_COMPLETE = 'X'.
    Afterwards activate generate ... and save.
    The development class is VEI.
    Please also check note 118573 which explains the FT user exits.
    Regards,
    Alex

  • Automator Watermark PDF Issues

    I just updated to Yosemite (OS X 10.10) and the Watermark PDF function in Automator has stopped working. Each time it gets to this function, it returns an error message. I have tried replacing the function and even rewriting the Automator sequence but have not had any luck. I have also confirmed that it is not a renaming issue with the file or a problem with the picture itself. Has anyone had this problem or could they suggest a solution?

    I have exactly the same problem!
    Upgraded to Yosemite last night (to 10.10.1 actually) and this morning the Watermark PDF does not work anymore!
    Exactly the same automator file that still worked yesterday!
    Although this is a simple automator sequence (open folder, get all the files, watermark and put the files in a different folder), it is mission critical for me.
    I'll post this problem in a few places and see if I get a response, if not its back to Mavericks tonight. Fortunately I have a Time Machine backup....

  • Create a pdf document with an expiration date.

    as I can do to make the pdf document has an expiration date, starting from the date in which it has fallen.

    Actually, it can be done with JS, but it is far from a secure solution and there are various ways a user can get around it (download a new copy of the file, disable JS entirely, change their local time, etc.), so yes, for a real solution you'll need to use DRM technology.

  • Password protected PDF document not opened with E7...

    Dear all,
    Password protected PDF document not opened with nokia E7-00. Previously I used nokia N79, that time I was able to open Password protected PDF file such as bank email statement etc. Now I can't.
    It is quite disappointing with this phone !

    hi mateys,
    you may want to search under "PDF" in the Nokia Store, as some solutions such as Picsel Smart Office exist, where they do open password-protected PDF's.

  • Using 10.6.8, internet pdf documents not opening using Adobe Reader; how is this corrected?

    Using 10.6.8, internet pdf documents not opening using Adobe Reader; how is this corrected?  I've tried changing "sharing and permissions" to "read and write" as suggested on other help sites, but this did not correct the problem.

    I had the same problem---contacted Adobe and their service rep helped me by
    A.   Deleting  Adobe Reader from my iMac's Applications in Finder
    B.   Downloading Google Chrome browser and then
    C.   Downloading the latest Adobe Reader for Mac 10.6.8 in Google Chrome--it works
    Adobe acknowledges problem with the latest Snow Leopard update 10.6.8 and with this work around, I can open PDF's using the Google Chrome Browser.
    Is this the ideal solution---NO.  Safari is my main browser. I now have to use a separate browser for PDF's.
    Am I happy to be able to open PDF's---YES
    You can't believe the time I spent to solve this problem before calling Adobe for help. My Apple Care policy expired a month ago . As I use Photoshop Elements, I was not charged by Adobe for their help on the telephone.

  • 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

  • I have pages 09 0n my Mac Mini, but iCloud won't accept pdf documents not created in pages...

    I have pages 09 0n my Mac Mini, but iCloud won't accept some pdf documents not created in Pages (Its says Document format not supported).
    How do I get docs (pdf/jpg etc.), that are saved under "Documents" on my Mac Mini (Not in Pages), onto iCloud???
    I want to transfer (None Pages) documents from the Mac Mini to my iPad 3 (Which has Pages for iPad 3).
    Thanks in advance for ANY Feedback!

    You can download PDF files from iWork's page to a mac, but you can't upload from mac.  Also, you can't use iCloud like MobileMe's iDisk.  Most document formats on your mini can't be copied to iCloud.  Use Dropboc instead.

  • Adobe reader XI can't open mp3 files in a pdf document- says the required decoder not installed

    Adobe reader XI can't open mp3 file links contained in a pdf - it says the required decoder is not installed
    please help!

    This is not a function of Reader, but that your computer does not seem to be configured to play mp3 files. Try fixing your file associations. The method of doing so depends upon your OS and it version number.

  • Creation of PDF Document  using ADF Table data in new window

    Hi Guys,
    I have a requirement of creating a pdf document from adf table and it must open in a new window.I know creation of pdf document using itext pdf jar.But in my case how to write the table data to pdf and how to open it in new window.
    Thanks,
    Srinivas.

    In the TF do like this..
    view activity A-------dialog:invokePdf------->view activity B (invokePdf)
    Fragment A command button would be
    <af:commandButton action="#{pageFlowScope.PdfBean.openPDF}"
    text="Generate" id="cbpdf"
    useWindow="true"
    windowWidth="700" windowHeight="700"/>
    in the action add a return like return "dialog:invokePdf";
    Control flow outcome is "dialog:invokePdf". B would be just a empty fragment.

Maybe you are looking for

  • RAISE_EXCEPTION condition NO_AUTHORITY

    Hi, I am getting the RAISE_EXCEPTION since two day can some please sugget on this issue. these dumps are generating when the job is SM:FILL SD CACHE FOR WORKCENTER is after starting the Step 001 started (program RAGS_WORK_SD_CACHE, variant , user ID

  • HP 3052 scanner doesn't work with Mountain Lion

    So I upgraded MacBook Air to Mountain Lion and everything seems fine except I can't use scanner function on my HP 3052 AiO. The printer still prints OK but I can't see scanner anymore. Can anybody help me?

  • Photoshop CS6 keep quitting unexpectedly

    Hi there, I've been having this issue on and off for a couple of weeks. Last week I uninstalled Photoshop and reinstalled it and am having the same issues again. Sometimes Photoshop quits while I'm working on a file and asks me if I wish to reopen. W

  • Info Package-'Repair Full Request'

    Hello,    In the info package o the scheduler menu there is an option 'Repair full request' what is this for.Could you please give when i can use this option Thanks

  • Reg:Convert DOCX to HTML

    Hi, I want to convert a microsoft word document(docx) to html using code. Can anyone help me in this context ... The doc which I am trying to convert will have Bullets,bold,italic,Images etc ... I am able to get the text but not the images and bullet