PDF Software

PDF Encryption and PDF Decryption options in PDF Toolkit Command Line software

PDF Toolkit Command Line software

https://veryutils.com/pdf-toolkit-command-line-tools-and-utilities

Chapter 4 PDF Encryption and PDF Decryption
4.1    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.2    Encrypting a Document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4.3    Decrypting a Document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

pdftoolkit -encrypt <method> <owner> <user>
[-no-encrypt-metadata] <permissions> in.pdf -o out.pdf
pdftoolkit -decrypt in.pdf owner=<owner password> -o out.pdf

image

4.1    Introduction

PDF files can be encrypted using various types of encryption and attaching various permissions describing what someone can do with a particular document (for instance, printing it or extracting content). There are two types of person:

The User can do to the document what is allowed in the permissions.
The Owner can do anything, including altering the permissions or removing encryption entirely.

There are five kinds of encryption:
•    40-bit encryption (method 40bit) in Acrobat 3 (PDF 1.1) and above
•    128-bit encryption (method 128bit) in Acrobat 5 (PDF 1.4) and above
•    128-bit AES encryption (method AES) in Acrobat 7 (PDF 1.6) and above
•    256-bit AES encryption (method AES256) in Acrobat 9 (PDF 1.7) – this is deprecated – do not use for new documents
•    256-bit AES encryption (method AES256ISO) in PDF 2.0

All encryption supports these kinds of permissions:
-no-edit    Cannot change the document
-no-print    Cannot print the document
-no-copy    Cannot select or copy text or graphics
-no-annot    Cannot add or change form fields or annotations

In addition, 128-bit encryption (Acrobat 5 and above) and AES encryption supports these:
 
-no-forms: Cannot edit form fields
-no-extract: Cannot extract text or graphics
-no-assemble: Cannot merge files etc.
-no-hq-print: Cannot print high-quality
Add these flags to the command line to prevent each operation.

4.2    Encrypting a Document

To encrypt a document, the owner and user passwords must be given (here, fred and charles respectively):

pdftoolkit -encrypt 40bit fred charles -no-print in.pdf -o out.pdf
pdftoolkit -encrypt 128bit fred charles -no-extract in.pdf -o out.pdf
pdftoolkit -encrypt AES fred "" -no-edit -no-copy in.pdf -o out.pdf

A blank user password is common. In this event, PDF viewers will typically not prompt for a password for when opening the file or for operations allowable with the user password.

pdftoolkit -encrypt AES256 fred "" -no-forms in.pdf -o out.pdf

In addition, the usual method can be used to give the existing owner password, if the document is already encrypted. When using AES encryption, the option is available to refrain from encrypting the metadata. Add -no-encrypt-metadata to the command line.

4.3    Decrypting a Document

To decrypt a document, the owner password is provided.

pdftoolkit -decrypt in.pdf owner=fred -o out.pdf

The user password cannot decrypt a file.

Internet Software

Email Extractor – Standalone PHP Script

Email Extractor is a web spider (PHP script) which crawls through the web and extracts e-mail addresses from webpages. You just have to enter start webpage URL, select crawling mode, set maximum number of URLs to crawl and launch a spider. It will walk around the web and collect e-mail addresses.

https://veryutils.com/php-web-email-crawler

https://veryutils.com/php-script-batch-send-emails

image

Email Extractor Features:
* Start webpage URL: spider starts working with this page.
* 2 crawling modes: same domain URLs only and all URLs.
* Maximum number of URLs: spider can crawl limited and unlimited number of URLs.
* Crawling statistics: list of URLs, e-mails and error log.
* Clean code: clean PHP and JavaScript code can be used for study purposes.
* CURL and fsockopen supported: spider can work through either fsockopen or CURL.
* Portable and standalone PHP Script, without installation.
* No database required.

Limitations:
* Spider doesn't extract e-mails from images.
* Spider doesn't extract e-mails from password protected area of websites.
* Some websites may block spiders.
* Make sure that using spiders is not against of your hosting provider TOS (TAC).

Requirements:
* PHP version 5.0 or greater.

How to use?

You can just run following command line to start the Email Crawler for a website easily,

".\php\php.exe" "crawl.php" url===https://www.website.com level===100

Enjoy!

Internet Software

PHP Email Crawler — I have a CSV file of website URLs that I would like to extract the emails from, however, I’m unsure of the best way to run the script

Hi There,

I've just purchased a PHP Email Crawler.

I have a CSV file of website URLs that I would like to extract the emails from, however, I'm unsure of the best way to run the script.

https://veryutils.com/php-web-email-crawler

Are you able to please assist?

Many Thanks,
Customer
-----------------------------------------

image
Thanks for your message, you can take all of the URLs from your CSV file first, make a .bat file to contain the following command lines for each URL,

------------------------
"D:\VeryUtils\php-email-crawler\php\php.exe" "D:\VeryUtils\php-email-crawler\crawl.php" url===https://www.url1.com level===100

"D:\VeryUtils\php-email-crawler\php\php.exe" "D:\VeryUtils\php-email-crawler\crawl.php" url===https://www.url2.com level===100

"D:\VeryUtils\php-email-crawler\php\php.exe" "D:\VeryUtils\php-email-crawler\crawl.php" url===https://www.url3.com level===100

"D:\VeryUtils\php-email-crawler\php\php.exe" "D:\VeryUtils\php-email-crawler\crawl.php" url===https://www.url4.com level===100

"D:\VeryUtils\php-email-crawler\php\php.exe" "D:\VeryUtils\php-email-crawler\crawl.php" url===https://www.url5.com level===100

"D:\VeryUtils\php-email-crawler\php\php.exe" "D:\VeryUtils\php-email-crawler\crawl.php" url===https://www.url6.com level===100
......
......
......
------------------------

If the "php-email-crawler" in your system in a different folder, you need change the folder name in the .bat file also.

You can run this .bat file to do the batch email crawl, the crawled email will be saved into "emails-queue.txt" file in the current folder, then you can use "php-batch-email-sender" to batch send emails using "emails-queue.txt" file easily, the "php-batch-email-sender" script can be found from this web page,

https://veryutils.com/php-script-batch-send-emails

VeryUtils

PDF Software

PDF Viewer for WordPress Plugin

PDF Viewer for WordPress is the best PDF Reader plugin for WordPress. With this plugin, you can display and embed PDF Files of your WordPress Website very easily with a feature rich and nice PDF Reader.

PDF ViewerJS must be the easiest way to use presentations, spreadsheets, PDF's and other documents on your website or blog without any external dependencies. No tricks, no conversions, no unexpected downtime from external services, and no plugins required. It happens to work just fine in all major browsers today from the comfort of your own webserver. Download and unpack on your webserver and add one small text snippet to your webpages.

That is it: PDF ViewerJS does the rest.

Do you need to show documents on your site, company blog, intranet or in a web app? And you want something robust that will still work in five years, can work offline, doesn't depend on any third party services or might be (perceived as) invasive to the privacy of your users? If you are considering using hosted online tools like Crocodoc, Docstock, Zoho, Google Apps, or Microsoft Office 365 (all trademarks, no doubt), check out PDF ViewerJS, it probably fits your needs better. (If not, let us know, if it does, let us know too.) You can even give presentations directly from the browser, so it provides a great backup for uncomfortable swapping of USB sticks with slides when giving a talk.

PDF ViewerJS can already natively show both PDF files and many types of Office files stored in OpenDocument Format, the open standard for office documents. ODF is available by default in almost any modern office applications such as Microsoft Office, LibreOffice, Apache OpenOffice and Calligra Suite. Because it is built on modern web technologies, PDF ViewerJS understands embedded fonts, so your documents look pretty everywhere.

image

PDF ViewerJS is a best document viewer that enables embedded display of ODF or PDF files directly in webpages, without any external server dependencies, just done with HTML, CSS and JavaScript. It uses WebODF to display files in the OpenDocument format and PDF.js for files in the PDF format. This is a combination of WebODF and PDF.js functions.

Deploying and using PDF ViewerJS with your webpages can be done in a few minutes, it's very easy.

WebODF is a great JavaScript library to add Open Document Format (ODF) support to your website and to your mobile or desktop applications. It uses HTML and CSS to display ODF documents.

PDF ViewerJS WordPress Plugin supports ODF (Open Document, using WebODF) and PDF document formats.

What is PDF Viewer for WordPress?
PDF Viewer for WordPress is a simple WordPress plugin that Provides a nice interface to view pdf files on your site. Now you can embed pdf files with a nice viewer directly on any page/post of your WordPress website. Also, It comes with another shortcode with that you can allow a particular pdf file open with the viewer.

This is a great & useful plugin if you want to display pdf files of your site with a nice viewer like Acrobat reader. It comes with page navigation, Download, Presentation mode & lot more cool tools.

HERE IS A LIST OF FEATURES:

  • Automatically find pdf links & activate viewer if you choose that option.
  • Fully Customizable PDF Viewer. Customize the colors of viewer to match with your sites color combination.
  • Embed pdf with a feature rich viewer on WordPress page/post.
  • Brand viewer with you own logo (Customized version).
  • Logo links to homepage of your site.
  • Shortcodes with more parameters.
  • Shortcode for viewing pdf file on any post/page.
  • Shortcode to add a text link to your pdf file on any post/page.
  • Fully Responsive PDF viewer.
  • Style & Customize all the single items.
  • Compatible with Internet Explorer & most browsers.
  • Fast & smooth user experience.
  • Retain Image Quality.
  • No Third Party links, install the viewer on your website.
  • No Limitation of PDF size.
  • It uses jQuery to replace url's automatically which won't effect on your Site's SEO if you use the plugin on old site.
  • It also has 2 Display Mode Full screen and Embed.
  • PDF Embed is fully responsive as you can set the width in % as well as in pixel. Only height required to be in pixel.
  • Compatible with all modern browser ex. Mozilla Firefox, Google Chrome, Latest version IE, Safari etc..
  • Let your user see the PDF document in presentation mode.

Embed PDF in WordPress
You can embed a PDF either in a WordPress post or page or a custom post type through a shortcode. You can set the PDF to occupy the full width of your page, or embed the PDF in a size of your choice.

Responsive
The rendered PDFs are responsive. On changing the screen size, PDF will be resized automatically.

View Secured PDF File
You can secure your PDF so that users are forced to come to your website to see the PDF. Even if a user manages to download the PDF, he cannot open it because it is password protected.

How does that (view password protected PDF files) work?
You password protect the PDF file, and allow the plugin to open it with a special key. The plugin uses this key to decrypt the password of the PDF, and open it. All this happens internally. We have made a special application in our website where you can get a secure key for your PDF, please feel free to contact us for more information about this feature.

Full-Screen Mode
There is a full-screen option available in the plugin, which enables the PDF to seen in full screen of the browser. The user will have no trouble in reading the PDF.

Download the PDF
The user can download the PDF by a click of a button. You can even choose to hide the download button, if you don't want the user to download the PDF.

Next and Prev Buttons to Navigate Pages of the PDF
The user can go through the PDF by clicking on a "Next Page" & "Previous Page" button. He can also use keyboard arrow keys to navigate the PDF. (top & left key to go to the previous page, down & right key to go to the next page).

Embed Any Number of PDFs in a Single Page
There is no limit on the no of PDFs that you can embed in a single post or page.

jQuery / Javascript Plugin
A responsive jQuery / Javascript plugin is also available with the same features as this plugin.

https://veryutils.com/pdf-viewer-javascript-plugin

== Usage ==

Navigate to a Document file (ODF or PDF) in your WP blog's media library and press the button "Insert with ViewerJS".

Alternatively you can manually insert the WordPress shortcode `[viewerjs2 /path-to-some-file.pdf]` to embed any `*.pdf`, `*.odt`, `*.odp`, or `*.ods` documents at that location. (please change from viewerjs2 to viewerjs)

The plugin also provides a settings panel for adjusting the width and height of the embedded element (iframe).

== Installation ==

1. Upload the whole `PDF ViewerJS-plugin` directory and content to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.