Automate Print to PDF

Hi,
is there a way to automatically print to PDF a html file saved locally on my computer?
I want to get selected Finder items (or choose them), open each one in Safari, print it to PDF, close, open the next, print, etc... (No real reason Safari has to be involved though).
Surely such a basic thing as Print is available to Workflow! Or Applescript. I just don't know how to use the "Print" AppleScript command to get a PDF:
print v : Print an object.
print alias : The file(s) or document(s) to be printed.
[print dialog boolean] : Should the application show the Print dialog?
[with properties print settings] : the print settings
I have searched through here for a while and haven't found an answer. I expected that this would be a common thing to do. Maybe a Unix (ew!) schell script alternative?
Cheers, A.

Here's someone asking essentially the same question.
http://discussions.apple.com/thread.jspa?messageID=7044661
CUPS-PDF seems to be the answer, but it doesn't seem to work reliably on my machine. Sometimes certain images from the web page I'm 'printing' just aren't there.
I can't believe they still haven't got a basic Print to PDF AppleScript command!
Cheers, A.

Similar Messages

  • Automatically print a PDF from received emails.

    I'm trying to make Mail and Automator work together so that everytime I received a email (that I sended myself so I can print it on my mac) it's automatically printed and everything's cleaned up after.
    I know nuts about automator, so here's what I did so far.
    I config'ed mail with a rule that states that if "printthisplz" (my keyword) is in a mail, move it into the "mailprint" mailbox.
    From there, I made an automator workflow that will get the email from that mailbox "mailprint", Get attachments from these mails (being in this case PDFs only) saving them to a folder named "mailprint" on my mac, then "Print" finder items. I also added in the end to Move those Finder items to trash.
    At first it seemed to work, except it presented me the printing window of my printer, then said it was completed while nothing printed. The second run showed an error, which was corrected by adding Move to trash (apparently it won't work if there's already a file with the same name in the folder).
    So it seems to be fine, if we consider that it should print normaly (which isn't the case so far), but I want to make it run by itself (e.g: whenever a mail is moved to that mailbox, trigger xx workflow or "print the attachments of the mails").
    Thanks if anybody can help me with this!
    PS: I know that I can share my computer's printer over a local network and in fact, that's what I've done. Unfortunatly the stubborn PC down there don't seem to pick up good the printer and I always find myself sending an email. Also autoprint from a remote place could be very cool at all.

    I'm trying to make Mail and Automator work together so that everytime I received a email (that I sended myself so I can print it on my mac) it's automatically printed and everything's cleaned up after.
    I know nuts about automator, so here's what I did so far.
    I config'ed mail with a rule that states that if "printthisplz" (my keyword) is in a mail, move it into the "mailprint" mailbox.
    From there, I made an automator workflow that will get the email from that mailbox "mailprint", Get attachments from these mails (being in this case PDFs only) saving them to a folder named "mailprint" on my mac, then "Print" finder items. I also added in the end to Move those Finder items to trash.
    At first it seemed to work, except it presented me the printing window of my printer, then said it was completed while nothing printed. The second run showed an error, which was corrected by adding Move to trash (apparently it won't work if there's already a file with the same name in the folder).
    So it seems to be fine, if we consider that it should print normaly (which isn't the case so far), but I want to make it run by itself (e.g: whenever a mail is moved to that mailbox, trigger xx workflow or "print the attachments of the mails").
    Thanks if anybody can help me with this!
    PS: I know that I can share my computer's printer over a local network and in fact, that's what I've done. Unfortunatly the stubborn PC down there don't seem to pick up good the printer and I always find myself sending an email. Also autoprint from a remote place could be very cool at all.

  • Automaticly print to pdf without file name prompt

    Hi,
    I am building an aplication that uses "Report Generation Toolkit". I am creating a "word" report with a template. After I am done with word creation I want to convert this "word" report to "PDF" format. I need that this process will be an automatic one. I understand that I can use print to PDF software, but the problem with it is that every such software prompts me to choose file name and destination.I need to avoid this.
    Please help me.
    Regards,
    Jenia.

    Jenia wrote:
    ... I understand that I can use print to PDF software, but the problem with it is that every such software prompts me to choose file name and destination.I need to avoid this.
    Jenia,
    There is a lot of PDF software available and some do provide the means to avoid prompts when saving the PDF.   PDFCreator has the advantage of being open source and free, has its Autosave option and had a COM interface added to recent versions. Alternatively you could look at pdf995 which has similar capabilities.  I'm sure there are others.
    =====================================================
    Fading out. " ... J. Arthur Rank on gong."
    Attachments:
    PDFCreator_Autosave.jpg ‏44 KB

  • Anyone know of a shortcut to automatically Print to PDF?

    I just want to dispense with the three step process to do a Print to PDF - hold my tongue right or something so that I can, say, Command, Alt, Shift, Option, Wiggle, P to get pass the dialogs.
    Anyone know of a setting or preference that allows me to do this - greatly appreciated.
    Working towards a 'paperless' as in less paper, office and home.
    Al

    In Finder's Help, enter "Printing by dragging documents" as the search terms and see if any of the discussion presented therein will be of any utility to you. I'm thinking you could create a PDF desktop printer on your desktop and just drag the document of interest onto it.

  • Printing a PDF from JSP file.

    Hi there,
    I would like to automatically print some PDF files residing on my computer when the user clicks PRINT submit button on my JSP page without any print dialog coming up or with it. Is it possible?
    Thanks,

    No

  • Automatically print

    Hello-
    Is there a way to automatically print a pdf to a specified printer in the Workbench? I am not seeing a module to do this. Do you need anything special?

    It depends upon your requirements and considerations such as print volume and skill sets. Here are two ideas:
    1) Use the Common convertPDFService toPS to convert a PDF to PS. Use a custom script (or better, a custom DSC) and the Java Print Service APIs (StreamPrintService or PrintService class) to print to a printer that supports PS.
    2) Write the PDF documents to the file system and use Acrobat to print. This could be automated to batch print as well.
    Steve

  • How do I use the filter to automatically print email and .pdf, .xls, .doc attachments to my default network printer and to other network printers

    I receive sales orders by email. I want to filter some to print on my default network printer and others to print on another network printer. The email body must print as well as txt, .pdf, .xls, .doc attachments.

    You can filter messages to file them to a certain folder, but I don't think you can have Thunderbird to automatically print them.

  • When I print to PDF using Acrobat 11 Pro from any application the acrobat Reader does not launch automatically. Associations are correct. Thx for your help,  Bruce

    When I print to PDF using Acrobat 11 Pro from any application the acrobat Reader does not launch automatically. Associations are correct. Happens from Chrome, IE, Word, Excel, Powerpoint. Previously had deskPDF installed but uninstalled correctly. Can't find a preference setting for the auto launch. Thx for your help,  Bruce

    A simple way is to flatten the form fields, which converts the field appearances to regular page contents. You can do this with JavaScript or PDF Optimizer (Advanced > PDF Optimizer > Discard Objects > Flatten form fields). A very nice script that adds a custom menu item can be found here: http://www.uvsar.com/projects/acrobat/flattener/

  • Printing a PDF automatically

    Hi everyone,
    I want my PDF to be automatically print when the user open it.
    I tried to put the following code in the event "enter" and "initialize", but nothing happened :
    xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 1, 0, 0, 0);
    Can someone help ?
    Thanks.

    Hi gammalight,
    i use Adobe Reader 7.0 and it works in this way for me. The document is printed with the default printer.
    Mike
    Message Edited by MikeS81 on 03-28-2008 04:26 PM
    Attachments:
    Unbenannt.PNG ‏5 KB

  • Is it possible to include Javascript so that my pdf will automatically print?

    We are currently evaluating new ways to deliver our documents to end users.
    Currently, we have a 3rd part library that enables us to create pdf documents from our web pages, and then open them up in a new tab. However, users being what they are, some don't print the pdf out or save it.
    I know I can force a Web page to automatically print using some very simple Javascript, and I can see that I can embed javascript into forms and documents. But before I spend any significant time getting the free trial of acrobat to do a trial, and then have to persuade the powers that be here that we need to buy a license for acrobat, I want to make sure that this is feasible, and I am not wasting my time!

    Thanks, (My fault, as I should have specified this.) Due to legacy reasons I need to use ie, and so I can't use the PrintPdf firefox plugin. So from reading the rest of that thread, the best method does seem to be to get hold of a copy of acrobat, and add a Print() script in each file, and open it in a new tab.
    At least it gives me somethigin to try anyway :-)

  • How can I silently print all PDF documents that are opened automatically?

    For a special terminal PC I want to print all PDF's that are opened to be printed automatically and without user interaction. The PDF is loaded in an iFrame in the browser, this PDF then needs to be printed.
    I don't want to modify the PDF's, the PDF's are supplied by another resource.
    I was thinking about using a folder level script that prints each PDF document automatically as soon as it is opened, but I don't know how to accomplish this.

    Macropanther wrote:
    I don't think the installation process will allow that unless the printer is connected.
    Incorrect. Win or Mac, you can install a printer driver w/o the printer being connected.
    I have tried MS PowerPoint (which can't seem to accept paper wider than 56 inches) and have  used NeoOffice Draw
    You're using the wrong tools. PP shouldn't even be in consideration; I don't know about NeoOffice, but I tried its cousin LibreOffice, and it has issues with custom paper sizes; which is not surprising, given what these apps were designed for.
    What you need for actual banners (not web page banners) is a vector drawing tool or a DTP app. I'd say Illustrator or InDesign, but Adobe CS is expensive, and, if you're thinking of PowerPoint for this job, you're not ready for it.
    You can try Pages; although not quite DTP, it can do the job and it's inexpensive. There are other options, such as Swift Publisher (a DTP app) or Intaglio (a drawing app) -- both are more expensive than Pages, but still affordable; or you can go open source with Scribus (DTP) or InkScape (vector; requires X11). You already know the ups and downs of using open source. (These are just examples; you can find others if you look for them.)
    Although it's better to have Kinko's printer driver, to make sure of the correct options, you don't actually need it to print to PDF. You should be able to define a custom page size (eg, 12in × 72in) and create the PDF from it. Any app which uses the Mac OS X standard print function should be able to do it.

  • Turn off pdf automatically opening when printing to pdf?

    I print to pdf multiple times in Autocad and I do not want Adobe opening each new pdf page...I just want to continue creating the pages without the preview

    For a PC, go to Start>Printers and select the preferences for the Adobe PDF printer. On the settings tab you can select to not open the PDF after printing.

  • How to automatic print to default printer

    now i use this command
    web.show_document('http://servername:7778/reports/rwservlet?server='||
    'repserver&report='||Para_Repname||'&desformat=pdf&destype=cache&userid='||
    Get_Application_Property(USERNAME)||'/'||Get_Application_Property(PASSWORD)||'@'||Get_Application_Property(CONNECT_STRING)||
    v_parameter||'&paramform=no','_blank');
    it 's show pdf file in browser if i want to print i must click printer icon on browser, but i want it to automatic print to printer immediate
    someone has solution.

    Because the reports run on the server and not on the client machine, there really is no way to print to the client's default printer because the server has no way of knowing what this printer is.
    You could create a user parameter with a list of the printers that are normally used and have the users select which printer you wanted the output sent to.

  • Problem with printing a PDF

    Hi All,
    I'm developing a web application written in J2EE that uses Java Reporting Component (JRC) to display crystal reports from some filters recovered from a jsp and passed to a report .rpt previously designed and invoked just at runtime.
    I have a problem with printing a PDF:
    I want, after entering the filters in a jsp, to print a report in PDF format (WORD) without opening it
    with Adobe Reader (Microsoft Word). The class of API JRC used for export is ReportExportControl.
    Can anyone help me?
    I wish a great day to You all.

    Hi Ted Ueda,
    sorry for the delay of my answer.
    I understand very well the problems related to security.
    With the following code that I used to produce a report (PDF) at runtime,
    is the PDF created on the server and then sent to the client, or is it directly created on the client as PDF
    from RTF previously realized?
    ReportExportControl exportControl = new ReportExportControl();
    String report = report path;
    ReportClientDocument reportClientDoc = new ReportClientDocument();
    reportClientDoc.open(report, OpenReportOptions._openAsReadOnly);
    Object reportSource = null;
    reportSource = reportClientDoc.getReportSource();
    //The method setConnectionProperties() stores all the connection parameters in the collection
    //ConnectioInfos
    ConnectionInfos connInfos = setConnectionProperties(request, reportClientDoc);
    exportControl.setEnableLogonPrompt(false);
    exportControl.setEnableParameterPrompt(false);
    exportControl.setReportSource(reportSource);
    exportControl.setDatabaseLogonInfos(connInfos);
    //Single method to pass parameters to Crystal Reports. Using classes ParameterFieldController and
    //ParameterFieldDiscreteValue
    setReportParametersValue(reportClientDoc, reportParameters, subReportParameters);
    ExportOptions exportOptions = new ExportOptions();
    //Set the export format (PDF)
    exportOptions.setExportFormatType(ReportExportFormat.PDF);
    PDFExportFormatOptions PDFExpOpts = new PDFExportFormatOptions();
    exportOptions.setFormatOptions(PDFExpOpts);
    exportControl.setExportOptions(exportOptions);
    exportControl.setExportAsAttachment(true);
    try {
          exportControl.getHtmlContent(request, response, getServletConfig().getServletContext());
    } catch (ReportSDKExceptionBase e) {
    throw new ApplicationException("error code", ": error message"); }               
    As, however, I predicted in my previous message about the direct printing on the client,
    I read about ActiveX, but I don't know how to use them.
    I read this information in the 'Crystal Reports for Eclipse Developer Guide' about "printMode" attribute:
    "In ActiveX print mode, an ActiveX control is downloaded to the client machine and the report is send directly to the printer...."
    The ActiveX alternative is a java applet that runs on the client and takes the pdf from the server and prints directly onto the clients through the commands that I used in the DOS command line:
    1)     AcroRd32.exe /p /h FILENAME
    where
    /p = print
    /h = hide window
    to print the report and
    2)     tkill AcroRd32
    to close Adobe Reader, because it doesn't end automatically after printing and the command  /h  is used just to minimize the process.
    I hope you can give me advice because I need to print directly on the client. Thank you

  • How do I print a pdf file that is printing too light to read??

    I have a pdf that I must print to buy a home.  It will not print as is. I shot screen shots, brought them into Photoshop, made them jpgs and adjusted the gamma to make them very black and white. 
    It helped but the pages cannot be read. There is plenty of ink in the printer.
    I need to send this paperwork tomorrow with a check...
    WHAT TO DO?

    I have this problem as well, prints come too light out of my Brother5370DW and consulted several channels on internet. Printing from pc was never a problem, only from mac: jpgs, tifs, txt, from Preview, Safari, Firefox, Photoshop, Acrobat etc whenever the document it was not full b/w. Especially screenshots from Google maps were just illegible. I just tried to print a pdf with dark grey text, very light as well. Then it ocurred to me to change the color matching profile in the printer's dialogue window: instead of automatic (which is Adobe RGB (1998) by default, I choose Black & White, and finally it prints fine: black what is supposed to be black, idem for dark greys, light greys.

Maybe you are looking for

  • Installation of Solaris 10 on x86 machine

    I am going to install Solaris10 5/08 on an x86 machine. After I bootup the dvd, it shows: GNU GRUB version 0.95 ( xxK lower / xxK upper memory) grub> It doesn't show the selection item reference to the following document. http://www.sun.com/software/

  • Will Photo Library Manager help without library file

    I recently upgraded to Leopard and added ilife to upgrade my iphoto from a reeaaally old version. I imported photos from the old version and Iphoto was working fine a couple weeks ago. Today, however, when I tried to open it, I got the Choose Your Li

  • Subtotalling a numeric field for each row

    CR Xi In reviewing a legacy report for creation of a new report I'm getting an error: "There must be a gropu that matches this field" I've created three (3) Formula fields: DailyQty, NonDailyQty and TotalQty Here's the logic for TotalQty which genera

  • Getting invalid username/ password when trying to change expired password

    I am using Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production. I created a user with password expire option and gave create session grant. When I tried to connect with the user it gives me password expired message as expecte

  • JDBC: Prepared statements with more parameters than column names

    I'm using the latest version of the JDBC driver - 4.1.5605.100_enu - on Java 1.7, Linux. I'm connecting to MS SQL Server 2012 Express Edition using a connection URL of the form jdbc:sqlserver://10.0.0.2;user=username;password=pwd;database=testdb1 I