Hot answers tagged

6 votes

How do I extract text from images in terminal?

I did this using Shortcuts on Mac OS, creating the following shortcut: Then executing the shortcut from the command line or a script: shortcuts run "extract_text_from_image" -i input.png -o ...
Todd W's user avatar
  • 161
6 votes

Can I export a document from iOS Freeform to get Vector quality PDF?

It does look like exporting to PDF does indeed convert to bitmap, and there doesn't seem to be any settings to change this. You'll need to send feedback to Apple that this is a feature you want, and ...
benwiggy's user avatar
  • 35.3k
5 votes

Good PostScript viewer for MacOS?

FWIW, as of 2023, Preview no longer supports postscript files. Which is pretty annoying if you like to hand write postscript. From that Apple note, a nice to know is that you can directly drag a "...
Benjohn's user avatar
  • 241
4 votes
Accepted

How to make hyperlinks work on PDFs from MS Word for Mac

When using "Save As" to save your document, make sure the file format is set to "PDF" and the "Best for electronic distribution and accessibility" option is the one being ...
Thinkr's user avatar
  • 3,343
4 votes

How to install pdftools with MacPorts?

You seem to have installed a package for R (a programming language) which lets R programmers manipulate PDF files. It doesn't look like you can call it directly from the terminal. Usage instructions ...
user108903's user avatar
3 votes

Preview automatically password protects PDF when saving

This worked for me when other answers did not. After opening the file in Preview and typing data into the form, I did the following without saving the document first. File > Print In a dropdown ...
GraehamF's user avatar
  • 131
3 votes

Preview automatically password protects PDF when saving

The bug in Preview is that if the original PDF had an owner password that prevented some actions but still allowed you to view and fill forms, when Preview saves or exports the file, it sets that ...
ADTC's user avatar
  • 177
3 votes

How to find a list of open source / free pdf editors?

Here is a starting point. A list of PDF related applications running on Macs: MacUpdater PDF search. The MacUpdater list is based on apps installed on Macs using the MacUpdater product. The search ...
Gilby's user avatar
  • 10.5k
3 votes
Accepted

Since Preview does not support embedded JS, am I safe from attacks using it as a vector?

You're safe... If you use Preview, you are essentially safe from embedded JavaScript. This doesn't however, protect you from embedded links that take you to a web page with malicious code (flattening ...
Allan's user avatar
  • 100k
3 votes
Accepted

Preview and PDF: Remove a password which I do know

From a quick test, I can Export... from Preview to a new document, and use the Permissions dialog in the file save panel to enable all the permissions. However, the Owner Password is still "...
benwiggy's user avatar
  • 35.3k
2 votes

Preview does not save PDF form data

I think 'Adobe Acrobat Reader' or 'Adobe Acrobat Pro' is the best solution. You can install Adobe Acrobat Reader via brew in macOS brew install adobe-acrobat-reader Then you can open and edit PDFs ...
HobbyMarks's user avatar
2 votes
Accepted

PDF reader for iPad with both bookmarks and continuous scrolling, without long save and load times

iBooks now has vertical scrolling It’s enabled via ‘Aa’ at the top right corner
Denis's user avatar
  • 168
2 votes
Accepted

Sharing website in Books (= printing as pdf) does not work anymore in Safari, crashing the website. How to save a pdf of the website to Books?

Full-page screenshot First, take a screenshot of any part of the page you want to save. When the screenshot thumbnail appears at the bottom-left-corner of your screen, click on it. An screenshot ...
Thinkr's user avatar
  • 3,343
2 votes
Accepted

How to write backslash in Apple script

Well, there is the AppleScript way: set inpath1 to quoted form of "/Users/user1/Dropbox/z_Scripts/ex1.pdf" set inpath2 to quoted form of "/Users/user1/Dropbox/z_Scripts/ex2.pdf" do ...
David Anderson's user avatar
2 votes

How can I edit Books’ metadata on iOS?

iOS is sandboxed, and the Books app does not save data to a folder in the Files app, so there is no iOS SDK function to access or modify the Books app’s files. This determines that you must copy the ...
Julius H.'s user avatar
  • 313
2 votes

How to read PDF on iPhone in narrower columns?

PDFs are designed to describe a fixed page layout, with items in set positions. They are not capable of 'live reflowing' the text, or wrapping it to the window. That having been said, some desktop ...
benwiggy's user avatar
  • 35.3k
2 votes

How to install pdftools with MacPorts?

Here are a range of PDF-manipulating command line tools that can be installed directly: XPDF tools https://www.xpdfreader.com/download.html PDFtk Server: https://www.pdflabs.com/tools/pdftk-server/ ...
benwiggy's user avatar
  • 35.3k
1 vote
Accepted

Preview doesn't reopen documents that were open in last session

Launch Preview, then use Finder's Go menu to see its saved state Go > Go to Folder > ~/Library/Saved Application State/com.apple.Preview.savedState This should be an alias folder with a little ...
Tetsujin's user avatar
  • 115k
1 vote

Is missing unsafe-inline in CSP truncating PDF height a bug in Safari (WebKit) display of pdf files?

I've found that Safari v. 17.0 running under macOS Ventura no longer shows the problematic display of a pdf file (that I reported in my initial query) when the host website server's Content Security ...
jimmac05's user avatar
1 vote

In Preview, how do I change certain text color to a different color on a PDF?

If you're using Mac Big Sur and seeking a solution to modify the selected text color within a PDF, various options are available to you. Consider exploring alternative PDF editing applications that ...
TrevorRupe's user avatar
1 vote
Accepted

How to get rid of PDF permissions issue

The code proposed by @Caterina : set sd to path to startup disk tell application "Preview" try close sd end try end tell How it works : This code clears any sandbox ...
Thinkr's user avatar
  • 3,343
1 vote

How to get rid of PDF permissions issue

I found the solution doing this: set sd to path to startup disk tell application "Preview" try close sd end try end tell I have no idea why it works, but it does. If anyone ...
Caterina's user avatar
1 vote

Does Safari's 'Export as PDF' keep JavaScript and allows data from external sources?

Safari's Export As PDF uses macOS's Quartz engine to create a PDF 'version' of the rendered webpage. So no 'code' that's in the HTML gets transferred to the PDF. In the same way, embedded video and ...
benwiggy's user avatar
  • 35.3k
1 vote

Preview app keep crashing (13.2.1 (22D68))

Usually, the saved state for the app can cause this. To test quickly, you will want to restart the Mac and start preview and not load any document. It's located in the Applications folder - so open ...
bmike's user avatar
  • 235k
1 vote

Search for text in image using macOS Preview's Live Text OCR

Incase you're still looking for this app, or anyone who does, I made an app specifically for this! An OCR search app that indexes and searches for text inside the image. SearchOCR https://apps.apple....
Jr Navarro's user avatar
1 vote
Accepted

MacOS Preview shows only odd pages in one page mode

this problem look like a bug about viewing options(single page/two pages) when you change the right click then you have to change also with menu bar. when both have them on the single page problem ...
mtech00's user avatar
  • 26
1 vote

Preview automatically password protects PDF when saving

Open the browser. Log into Microsoft One Drive. Upload the pdf document to Microsoft One Drive. And open from there. It did open and showed me the contents.
Muhammad Salim's user avatar
1 vote

Is there an iPad PDF viewer that can stay zoomed out?

I’ve just discovered this problem and the best solution I’ve found is using the iOS app ‘Goodnotes’ from the App Store. I’ve imported the offending .pods and not only can I now scale the reading I can ...
David Jenkins's user avatar
1 vote

Is there a simple way to convert a Unicode text file to PDF on the command line on macOS?

https://pandoc.org/ can convert from text to PDF (and much more). Basic invocation: pandoc input.txt -o output.pdf
Andreas Abel's user avatar
1 vote

Select font when converting .txt to .pdf from command line

https://pandoc.org/ can convert from text to PDF and has many options, also to configure fonts. Basic invocation: pandoc input.txt -o output.pdf
Andreas Abel's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible