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

Similar Messages

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

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

  • 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

  • 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

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

  • I'm using Acrobat XI on Windows.  I want to add my company's logotype as a watermark to a PDF document.  How can I do this?  When I add it as a file (jpeg), the logotype is printed on a white square background.  It will be positioned on the PDF document o

    I'm using Acrobat XI on Windows.  I want to add my company's logotype as a watermark to a PDF document.  How can I do this?  When I add it as a file (jpeg), the logotype is printed on a white square background.  It will be positioned on the PDF document on a light, uniform yellowing color. I want this to show through, as if the logotype was stamped directly on the document.  Thanks.age to be completely transparent

    The above was truncated and garbled a bit and I can't figure out how to edit it.  So just to repeat the question a bit more clearly: "I'm using Acrobat XI on Windows.  I want to add my company's logotype as a watermark to a PDF document.  When I add it as a file (jpeg), the logotype is printed on a white square background (because the jpeg is square with a white background of course).  It will be positioned on the PDF document on a light, uniform yellowish color, which I want to show through. I want it to look as thought the logotype was stamped directly on the document.  Thanks.

  • I would like to add a watermark on my pdf document I have adobe acrobat XI standard

    I would like to add a watermark on my pdf document I have adobe acrobat XI standard

    You should have that option under Tools - Pages - Watermark...

  • Can you overlay two PDF documents, but use second PDF as watermark to first?

    I have two PDF documents that I want to overlay page by page. (It's a long story, but the purpose is to create an PDF cast. Livescribe Education :: Guest Blog: How To Embed Text Behind a Livescribe Pencast PDF)
    The known method to do this is basically overlaying a JPEG file on a PDF page. The process becomes extremely cumbersome if there are more than 2 pages of PDF. So I'm looking for a way to overlay one PDF file on top of another PDF file in the form of watermark.
    Is there a plug-in or app that can facilitate this?

    Open the first PDF with Acrobat Pro.
    Now use the tool that lets you insert a background.
    Select the second PDF.
    Adjust the scale of this PDF (in the dialog) as needed.
    When done consider flattening the layer.
    Be well...

  • Is there a free software to remove watermark from a pdf document?

    What are the free softwares to remove watermark from a PDF document ?

    No. The watermark is placed there by the owner of the document. Contact them. If you are perhaps referring to watermarks that appear on scanned documents, you need to purchase the scanning program to remove those. In as much as your information is pretty sparse that's all I can advise you on.

  • I am using Adobe Acrobat Pro and want to put a watermark on a pdf document I have opened.  How do I do this? Thank you

    I am using Adobe Acrobat Pro and want to put a watermark on a pdf document I have opened.  How do I do this? Thank you

    I don’t have a tools menu?
    Crystal Scott
    Chartered Accountant
                   Associated Business Advisors Limited
                    Chartered Accountants
                    P O Box 46, Orewa 0946
                    Level 1, 178 Hibiscus Coast Highway, Red Beach 0932
                    Ph (09) 426 8488    Fax (09) 426 8486  www.aba.org.nz<http://www.aba.org.nz>   [email protected]<mailto:[email protected]>

  • Create PDF document via Acrobat OLE/Automation?

    Hi,
    Is it possible to utilize the OLE/Automation feature of Acrobat Professional, instead of Acrobat SDK, to create a PDF document and add objects into it?
    Thanks

    OLE is a part of the SDK, not something different from it. 
    To use OLE you need the SDK as that is where it is documented.
    OLE is very limited but it can run Acrobat JavaScript. Even then, it probably won't do what you want. You can add form fields and annotations but not page content.

  • About 2 weeks ago, not able to print all pages in a .pdf document using internet explorer 11?

    About 2 weeks ago, not able to print all pages in a .pdf document stored in a folder (I'm using Windows 7)? 
    It only prints 1 page then my Brother MFC-J4510DW Printer says "Please put another piece of paper in the feed slot"....the problem is the print setting is set to "manual mode" in Windows 7 rather than "general setting".  If you try to change the setting to "general", it will not accept the change.

    Hi.
    I did try using the printParams feature and it worked, but since I need to be able to print sets of non-consecutive pages,  I end up having to bring up the print dialogue multiple times and have the user set watermarks each time. 
    I decided to just create a new pdf in a temp directory containing the selected pages and open this document in a new window.  This works well and allows them to use the print button on the window to print, bringing up the print dialogue just once.  However, since I need to open the document in a way that shows the print button, I am using OpenInWindowEx, with AV_DOC_VIEW, and the option PDUseBookmarks or PDUseThumbs, rather than PDUseNone.  This displays a toolbar which also includes icons for creating a new pdf, deleting pages, etc.  I do not really want to include these icons on the toolbar.  Is there a way to remove unwanted icons from the toolbar, or make them invisible?
    Hope this makes sense.  Thanks for your help.
    Mary

Maybe you are looking for

  • Report for Bill-to and Sold-to relationship

    Hi, We want a report like---Bill-to(A) is assigned for which are all Sold-to parties.  Because we will be having like one bill-to will assigned to ' n' number of sold-to parties Can anybody tell from which table or any t-code, to take the report. Reg

  • Can't send or receive pictures on iphone 5/ sprint, please help!

    Was on the phone for over 3 hours last night with Apple and Sprint and I'm beyond frustrated.  I just started using my iPhone 5 on the Sprint network a few days ago.  I did the 6.0.2 update.  I can't send or recieve picture messages!  Regular text me

  • How can I show the correct word?

    I run this script. create table a (c1 nvarchar2(10)); insert into a values ('aaaa'); Then I make data block about table a,then query it in a base form. But when I execute,the result is "####" instead of "aaaa". Does anybody can tell me why and how to

  • My startDynamoOnJBOSS.bat was displaying the errors

    Hi, Iam currently working on ATG 10.1.1 ,jboss 5.1.0,jdk 1.6.0_30 and oracle 10g xe.Actually i copied the startDynamoOnJboss.bat and startDynamoOnJboss.sh from %DYNAMO_HOME%\bin of ATG 9.1 as the ATG 10.1.1 doesn't have these files.when iam running t

  • Policies on specific time range

    Does Ironport has in the plan to set the policies to be applied in a specific time ranges, like apply a specific policy on morning then set another one at night? This feature is in the websense & smart filter and should be there in Ironport