motouf.blogg.se

How to save word as pdf on mac
How to save word as pdf on mac





how to save word as pdf on mac

Now that your service is ready to do a conversion, let’s try it on a DOCX file to see if it works. I have named it “Convert to PDF” as it is self-explanatory.ġ1. Enter a name for your service, and click on “Save.” You should enter a meaningful name. Your script is ready, and you need to save it by clicking on the “File” menu followed by “Save…”ġ0. You can uncomment (by removing the “#” in front of the line) the # rm "$f" >/dev/null line to have the original file removed after conversion.ĩ. Note: the script above does not remove the original. # Uncomment the following line to remove the original file, leaving only the PDF # rm "$f" >/dev/null done Textutil -convert html -output " $filepathWithoutExtension.html" " $f" # Convert the file into a PDFĬupsfilter " $filepathWithoutExtension.html" > " $filepathWithoutExtension.pdf" # Remove the temporary HTML file rm " $filepathWithoutExtension.html" >/dev /null

how to save word as pdf on mac

#!/bin/bash # Jacob Salmela # Convert annoying DOCX into PDFs with a right-click # Run this as an Automator Service # SCRIPT # for f in do # Get the full file PATH without the extension filepathWithoutExtension= " $" # Convert the DOCX to HTML, which cupsfilter knows how to turn into a PDF This is the script that actually does the process of converting a DOCX file to PDF. You need to copy the following script and paste it into the Run Shell Script box on your workflow. Here comes the main part of the procedure. Focus on the Run Shell Script action in the workflow, and click on the drop-down menu labeled as “Pass input” and change it to “as arguments.”Ĩ. Drag and drop an action named “Run Shell Script” from the left-panel onto the right-panel that is called workflow.ħ. Now, drag and drop the action labeled as “Get Specified Finder Items” from the left-panel over to the workflow that is on the right.Ħ. First, select “files or folders” from the “Service receives selected” drop-down menu, and then select “Finder” from the “in” drop-down menu.ĥ. On the following screen select “Service” as the document type, and click on “Choose” to create a new document that is a service.Ĥ. When Automator launches, select the “Applications” folder as the location for saving your script, and click on “New Document.”ģ. Launch Automator on your Mac by clicking on Launchpad in your Dock and searching for “Automator.”Ģ. You are going to create an Automator script that will handle the DOCX to PDF conversion for you.ġ. The reason I call it the fastest way is because it only requires right-clicking on the DOCX file. While there are multiple ways to convert a DOCX file to PDF, the most convenient and fastest way is described below. docx files in your Mac and would like people to only have read access to them, the best way is to convert them to PDF format so others can access them without having to install an office suite.







How to save word as pdf on mac