Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
This package is a Plone product that will add a Page Turner
view to the PDF File content type.
The result is that you'll be able to view PDFs much in the same way you can view them on
scribd.com. It uses the open source project, Flex Paper, to display the PDFs. You can find
information about it at http://flexpaper.devaldi.com/
.
This product requires that you have pdf2swf installed. pdf2swf is included in older versions of SWFTools, up to 0.9.0 (the most recent version of SWFTools is 0.9.2 dating from 2012).
Where possible, we recommend you use package managers to install SWFTools as there are some dependencies that need to be installed.
If you're using Ubuntu Lucid (10.04) (and possibly later versions, but not Trusty Tahr, 14.04):
On Mac, if you have MacPorts installed you can,
On Debian, you'll need to install from source as the swftools package does not include pdf2swf: http://wiki.swftools.org/wiki/Installation
Once you have installed the package, check if pdf2swf is in your path. On Linux:
On Windows: make sure pdf2swf.exe is in your path:
C:> pdf2swf
If it isn't in your path (ie. you get an error message above), you'll have to install manually; see below.
If your package manager installs a version of SWFTools that does not include pdf2swf, you can install an older version of the package that does.
These instructions for installing on Ubuntu are based on http://serverfault.com/questions/623604/install-pdf2swf-on-ubuntu-trusty-tahr14-04.
For AMD64:
For i386:
Other architectures are available at http://archive.canonical.com/ubuntu/pool/partner/s/swftools/
If all else fails, you can download SWFTools from http://www.swftools.org/
and install it yourself.
Add your PDF as a File to your Plone site (Add New -> File menu).
Edit the various setting of the Page turner by clicking the Page Turner Settings
button.
To turn off auto-selecting of the page turner layout for PDF files, go to ZMI -> portal_properties -> site_properties and customize the page_turner_auto_select_layout property to off.
PDFs that were on your site before you activated this add-on will need to be converted (you will see an error message on each File until you convert it). To convert an individual PDF, click the Flexpaper Convert button. Large PDFs will take some time to be converted. To convert all PDFs on your site, go to your site's URL and append /@@convertall-to-flexpaper, e.g. http://www.yoursite.com/@@convertall-to-flexpaper
Plone 3 and 4
Also works with Blob storage transparently so the converted PDFs aren't stored in the ZODB
Credit goes to Wildcard Corp and Talin Senner for sponsoring and designing the product, and Nathan Van Gheem for coding it.
With large PDFs the conversion to Flex Paper can take some time. If you have plone.app.async installed and configured, this conversion will happen asynchronously.
If you'd like to convert all the existing documents on your site, visit the URL http://www.yoursite.com/@@convertall-to-flexpaper
Flexpaper: 1.5.1
For a more fully featured add-on, see https://pypi.python.org/pypi/collective.documentviewer
more detail for instructions [tkimnguyen]
only queue conversion job if layout is page-turner [vangheem]
provide global settings configuration
provide ability to enter password for encrypted pdf
provide ability to convert all pdfs on the site to flex paper
work seamlessly with new version of wildcard.pdfpal so it will only create a flex paper after the new searchable PDF is provided.
provide ability to provide extra command line options when converting the PDF.
add wmode transparent for flash params so that flash does not overlap other elements.
switch to more accurate time format
remove temp files even when there was an error
update flexpaper to 1.4.0 [vangheem]
auto select page turner view for pdf files now and make configurable via portal_properties -> site_properties [vangheem]
better error checking when converting PDFs. pdf2swf still seems very touchy for converting some PDFs... [vangheem]
Added progressive loading, print enabled, full screen visible, search tools visible and cursor tools visible options [vangheem]
Fix for storing blobs. [davisagli]
Don't swallow exceptions while converting; log them. [davisagli]
Use the subprocess module instead of popen2 to communicate with pdf2swf. [davisagli]
Protect the page turner settings page with the "Modify view template" permission. [davisagli]
Avoid purging existing view methods for the File type on installation. [davisagli]
option to automatically enable the page turner view if PDF format is detected for a new file
support other formats besides PDF--is this possible?
FAQs
A Plone product that provides the PDF viewer FlexPaper.
We found that wc.pageturner demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.