Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

hosy/HSPDFThumbnailView

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HSPDFThumbnailView - Simple PDF Thumbnail View for macOS

In macOS 10.12 the system PDF thumbnail view is broken. You cannot select any item and thumbnails will not be displayed. This is a simple replacement view. It shows thumbnails of a PDF file and you can select pages. You can also set a menu to the view and you will get the page index, on which page the context menu was clicked. Dragging PDF pages is also supported.

Implementation

  1. Add the folder HSPDFThumbnailView to your project
  2. Add a NSCollectionView to your storyboard or xib file (Layout: Content Array, Selectable: YES)
  3. Change the class of your NSCollectionView to HSPDFCollectionView
  4. Add an ArrayController object to your storyboard or xib file, connect it to the HSPDFThumbnailView
  5. Check the bindings in the Sample Project and add this bindings to your collection view and array controller.
  6. Connect your PDFView to HSPDFThumbnailView
  7. Run your project

This project using code from the ThumbnailPDF project, for creating the thumbnail from the PDF file.

License

This library is available under the ISC license, which is a simplified variant of the two-clause BSD license.

If you use this library, I appreciate if you let me know @hosymat on Twitter.

alt text

About

Simple PDF Thumbnail View for macOS

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.