Skip to content Skip to sidebar Skip to footer

The Uploaded File Could Not Be Moved to Wp-content/uploads/2016/04.

About

Cheers for usign the WordPress PDF Calorie-free Viewer Plugin.

This plugin gives you an ability to embed PDF files to your Wordpress sites.

You could add together unlimited amount of PDF of whatsoever size without functioning bug.

Added PDF could be embedded as flipbooks on frontend.

PRO Addon is not required but it adds some useful features (marked with PRO here) which yous can check in this documentation or on the Addon's page.

Delight annotation that PRO Addon is not standalone plugin and it requires PDF Lite Viewer free plugin.

Features

  • Unlimited PDF files.
  • Unlimited PDF file size without site performance issues.
  • Plow.js flipbook integrated.
  • Dashboard flipbook preview.
  • Slider thumbnails navigation integrated.
  • Lazy loading pages integrated.
  • Pages zoom feature.
  • Pages fulscreen feature (for modern browsers).
  • s2member uniform.
  • Developer-friendly.
  • Well-documented.
  • Fully translatable to whatever language using .po files.
  • Supports wordpress multisites
  • Responsive design
  • Clear default look
  • CLI integration
  • Bulk PDF Import
  • Downloading and per-page downloading

PRO Features

  • Single separate PDF page.
  • Regular Wordpress PDF Archive page with ii templates.
  • One-folio PDF Archive page with two templates.
  • PDF Annal page past shortcode on custom page or frontpage.
  • PDF Categories.
  • Uncomplicated PDF folio search.
  • Certificate press.
  • Per-page printing.
  • SEO friendly mode.

What next?

Check Installation section to know how to install the plugin.

Installation steps

Regular installation

  1. Become the package Ok, you got the plugin packet :)
  2. Upload plugin package with WordPress http://yoursite.com/wp-admin/plugin-install.php?tab=upload or WordPress Multisite http://yoursite.com/wp-admin/network/plugin-install.php?tab=upload
  3. Actuate PDF Light Viewer Plugin on the WordPress Plugins folio http://yoursite.com/wp-admin/plugins.php
  4. PRO Tip: Activate PDF Light Viewer Pro Addon on the WordPress Plugins folio http://yoursite.com/wp-admin/plugins.php
  5. That's all! You tin beginning from Quick offset guide
  6. After plugin activation please go to plugin'due south settings on the page http://yoursite.com/wp-admin/options-general.php?page=pdf-light-viewer to Gear up Upwards the plugin.
  7. PRO Tip: Settings of the PRO functions are placed on the main plugin Settings page.

cPanel installation

  1. Upload plugin package through the cPanel File Director to the /wp-content/plugins/
  2. Extract plugin bundle contents to the /wp-content/plugins/ binder
  3. Activate PDF Light Viewer Plugin on the WordPress Plugins page http://yoursite.com/wp-admin/plugins.php
  4. PRO Tip: Actuate PDF Calorie-free Viewer Pro Addon on the WordPress Plugins page http://yoursite.com/wp-admin/plugins.php
  5. That's all! You tin first from Quick start guide
  6. Subsequently plugin activation please go to plugin's settings on the page http://yoursite.com/wp-admin/options-full general.php?folio=pdf-light-viewer to Gear up the plugin.
  7. PRO Tip: Settings of the PRO functions are placed on the main plugin Settings page.

FTP installation

  1. Unpack the plugin package with whatever archiving tool, which supports Cypher file format
  2. Upload files folder to the /wp-content/plugins/ to the server with any FTP customer awarding, for instance FileZilla
  3. Activate PDF Lite Viewer Plugin on the WordPress Plugins page http://yoursite.com/wp-admin/plugins.php
  4. PRO Tip: Activate PDF Lite Viewer Pro Addon on the WordPress Plugins page http://yoursite.com/wp-admin/plugins.php
  5. That'south all! You lot tin can starting time from Quick showtime guide
  6. Later on plugin activation please become to plugin'southward settings on the page http://yoursite.com/wp-admin/options-general.php?page=pdf-light-viewer to Prepare the plugin.
  7. PRO Tip: Settings of the PRO functions are placed on the primary plugin Settings page.
More about WordPress Plugins Direction

What adjacent?

Cheque Quick start guide section to see quick examples of plugin's usage.

First of all you need to check plugin requirements.

Requirements

  • PHP five.3 or higher
  • ImageMagick PHP extension OR GraphicsMagick PHP extension
  • Imagick PECL library OR Gmagick PECL library
  • GhostScript back up
  • Writable upload folder wp-content/uploads/pdf-low-cal-viewer
  • (optional) WP CLI if you plan to use plugin from the CLI

PRO Requirements

  • PDF Lite Viewer installed and activated
  • Specific version on PDF Light Viewer

After activation plugin volition create new post type for PDF files. You'll meet pointer notification near it'southward menu item.

Activation notifications

Also right subsequently activation, plugin volition cheque requirements and will notify you lot almost checking results. If requirements are met, notification will evidence up and disappear.

But if some requirements are not met, you'll see constant error notification. Follow the link in the notification to encounter details on the settings page.

Error notification

You can find WordPress PDF Light Viewer Plugin settings folio by following url accost like this one http://yoursite.com/wp-admin/options-general.php?page=pdf-lite-viewer

If some requirement is not met, yous will see it on settings page

Requirements are not met

PRO Tip: Settings and requirements for PRO Addon could exist found on the same page

PRO Requirements

ImageMagick/GraphicsMagick support

The ImageMagick/GraphicsMagick parcel and Imagick/Gmagick library are required for PDF Calorie-free Viewer plugin to work. Not supported in current context means that the Imagick library is not installed or turned off on the server. To brand plugin work yous volition demand to install it or to turn it on.

ImageMagick is the image manipulation library for PHP. ImageMagick is a server software and currently not included into the plugin.

To brand it work, someone, you, your server administrator or your hosting provider, should install (or enable, if it's already installed) this software on your server. If your site is maintained by some ambassador, he or she already knows how to install ImageMagick and Imagick libraries. Otherwise the installation could be done through cPanel in some cases and y'all could try to install it.

Sometimes your hosting provider could restrict installation of additional software. In this case you can contact them for further instructions and details.

To install ImageMagick manually please visit this installation guide.

GhostScript support

The GhostScript package is required for PDF Light Viewer plugin to work. To brand plugin work you will demand to install it on the server.

GhostScript is the application to piece of work with PDF files. GhostScript is a server software and currently not included into the plugin.

To get in work, someone, you, your server administrator or your hosting provider, should install this software on your server. If your site is maintained by some administrator, he or she already knows how to install GhostScript.

To install GhostScript manually please visit this installation guide.

Big thanks to Alexander for this notice.

GhostScript is required for Imagick PDF Support. For cases, when you are sure that GhostScript is installed, simply it was not detected by the plugin correctly you can disable this requirement in plugin'due south settings.

What side by side?

Check Set Upwards section to know more about plugin global settings.

Principal Settings

You tin observe WordPress PDF Light Viewer Plugin settings, requirements and documentation on the page http://yoursite.com/wp-admin/options-general.php?page=pdf-light-viewer

In settings you can hibernate the new PDF mail type from the admin card. This is useful, when you uploaded PDF files not often and do not want to unnecessary item to have the space of the screen.

Settings

You tin can turn it on again at any moment.

Also in setting you can plough off checking of GhostScript installation for cases when plugin cannot recognize the version.

PRO Settings

Settings

You tin show PDF unmarried pages on your site. For this check options Make PDFs public available.

To bear witness PDFs archive check Post type has annal option in addition to Make PDFs public available.

Change url slug for PDF pages in setting Public PDFs rewrite slug

Options Use custom post type archive template from plugin and Use custom post blazon single template from plugin may be unchecked if you want to customize Unmarried and Archive page templates.

What adjacent?

Cheque Usage department to know more than most use cases.

The process of publishing PDF files is the following:

  1. User uploads PDF certificate
  2. PDF document is parsed by the plugin
  3. User stays on the site until the document is parsed
  4. User adds the wordpress shortcode, produced by the plugin, to the page or post
  5. PRO User can open Single PDF folio to have PDF flipbook there.

Importing PDF file

You lot can get to PDFs menu item to run into the list of imported PDF files.

PDF Files in menu

If y'all simply installed the plugin the list will be empty. Become ahead and import starting time PDF document past clicking Import PDF button.

Importing of PDF is similar to the creating regular WordPress post or page but in that location are some differences.

Importing PDF

You can specify the title for the PDF. Information technology's for internal use but, it wouldn't be shown in the default shortcode.

PRO Tip: The title will be shown on Archive and Single pages.

You're available to change some importing options such every bit:

  • JPEG compression quality
  • JPEG resolution

Changing these options will affect importing process.

To import PDF file choose the file from the Media Library and check the checkbox Enable import

Click Publish to starting time the import.

Import scheduled

Nosotros moved the import process to the background, so yous could continue to do other things on the site if needed.

The import procedure doesn't apply the WP Cron functionality. It's triggered by browser's background (AJAX) phone call. We could not rely on WP Cron functionality because some servers (we faced that trouble with Hostgator) doesn't allow loopback requests.

The import procedure will work from whatsoever admin interface page.

It will work until yous leave the admin interface and will continue when yous come up back.

Anyhow, delight note, that import of large PDF files (50 pages and more) volition take some time.

Also, please note, that import of big PDF files will have some server resources (memory usage, CPU fourth dimension, etc.). Usage of these resource depends on PDF file size, number of pages, initial PDF resolution, etc.

That's why nosotros separated the import process by pages.

Please, use carefully.

The import time depends on the server. Anyway, you lot tin can check import progress in notification at the pinnacle of the folio, or on the PDF list page.

PDF List Page

Afterward import, the outset folio will exist ready equally featured epitome of the PDF file mail service.

PRO Tip: Featured prototype volition be shown on PDF Archive page.

Re-importing PDF file

To re-import PDF file, cull the new file from the Media Library and cheque the checkbox Enable import

Click Update to start the import.

Please notation, that all previously imported pages of this document volition be deleted from the disk. This functioning cannot be undone.

Updating PDF file

If you just need to change the proper name of the PDF file or some of the Output options, you leave the pick Enable import unchecked. Without checking this checkbox import wouldn't exist triggered.

Deleting PDF file

If y'all will permanently delete PDF file post, all previews will be also deleted.

Please note, that this functioning cannot be undone.

Output Options

You can change different output options such as:

  • Hide thumbnail navigation
  • Force i-folio layout - usually book will be shown in two-pages layout when the page is wider than 800px. This setting will force one-page layout always.
  • Max book width
  • Max book height
  • Limit book height by the viewport in fullscreen mode - plugin will attempt to fit the screen peak

PRO Output Options

Yous can change different Output options such equally:

  • Enable search engine optimization - in this case links of thumbnail navigation will open up "real" pages with PDF text included in the invisible <noscript> tag for SEO.

Toolbar Search PRO

Please note, that SEO friendly mode and simple search will work only if PDF contains text and information technology was successfully parsed from the file during the import.

If you've imported PDFs in PDF Light Viewer plugin without PRO Addon, so you'll demand to re-import those files to brand SEO friendly fashion and search functions work.

Toolbar Options

You can modify dissimilar output options such as:

  • Allow download - download button to download the whole PDF document
  • Alternate download link - if not gear up, then "PDF File" volition be used
  • Allow per-page download - separate pages could be downloaded
  • Per-folio download format - you can cull JPEG or PDF
  • Hibernate fullscreen push button
  • Disable page zoom - toggle mouse-over zoom role
  • Show toolbar adjacent and previous page arrows
  • Testify toolbar go to folio command
  • Show page numbers

PRO Output Options

Y'all tin can modify unlike Toolbar options such as:

  • Enable search through the PDF - autocomplete ajax search of the text content of the PDF document
  • Allow document printing
  • Allow per-page printing

Toolbar Search PRO

Please note, that SEO friendly style and uncomplicated search will work only if PDF contains text and it was successfully parsed from the file during the import.

If you've imported PDFs in PDF Light Viewer plugin without PRO Addon, then you'll need to re-import those files to brand SEO friendly mode and search functions work.

Changing permissions

In the Permissions department you tin add limits for unlike user roles for this file.

If you'll cull Anonymous user role and fix limit to 3, then on the Front of the site anonymous users volition run across only kickoff iii pages of the PDF file.

Shortcodes

After import you lot tin add PDF files with shortcodes anywhere in your mail service or page. Y'all tin can copy shortcodes from PDFs list page or compose them manually.

PDF List Page

Preview

After import file you could preview your file exactly how it will exist shown with aid of shortcode on the frontend.

PDF List Page

Visual Composer

In case when you're using Visual Composer plugin, the improve approach would be to map PDF Light Viewer shortcode.

Map Shortcode

After mapping y'all can go to the page, when y'all desire to have your PDF document and insert it there like shown beneath:

Shortcode Select

Shortcode Set Up

What next?

Check Advanced Usage section to get full control on the plugin functionality and await and experience.

So you're developer or maybe just want to know more about the plugin. We accept intendance about yous, no matter, whether you get our plugin from the customer or bought it for your purposes. You don't demand to change anything inside the plugin (at to the lowest degree we promise so).

You lot will take full control on the plugin right from other plugin, or theme, or whatever you lot use in your wordpress.

Code control

You can override whatever of plugins classes somewhere before the after_setup_theme activeness:

  • PdfLightViewer_Plugin - some main functions
  • PdfLightViewer_AssetsController - css and js assets including
  • PdfLightViewer_AdminController - admin functions
  • PdfLightViewer_FrontController - frontend functions
  • PdfLightViewer_PdfController - custom PDF post type and related functions

PRO Tip: PRO Addon has similar file structure and can be overrided in the similar way.

Templates command

You tin create shortcode-pdf-light-viewer.php in your theme or copy it from templates folder to your theme folder to override all default plugin template for frontend.

PRO Tip: To override Archive, Single pages or even Press view you could re-create to your theme folder files archive-pdf_lv.php, single-pdf_lv.php or print-pdf_lv.php appropriately.

Plugin Output

Shortcode [pdf-calorie-free-viewer] every bit well as PdfLightViewer_FrontController::display_pdf_book($atts = array()) has post-obit parameters:

  • id (required), this is ID of the PDF post, you can
  • template (optional), you can specify template name to override default. Template proper noun tin can be any, that accepted by get_template_part() office.

You could phone call class method PdfLightViewer_FrontController::display_pdf_book($atts = array()) directly instead of using shortcode [pdf-low-cal-viewer].

Shortcode [pdf-light-viewer-enqueue-assets] also as PdfLightViewer_AssetsController::frontendEnqueue() has no parameters. Information technology should exist mainly used to enqueue assets when PDF flipbook shortcode is injected with widgets. Information technology should be inserted before principal PDF flipbook shortcode.

PRO Shortcode [pdf-light-viewer-archive] as well equally PdfLightViewerPro_FrontController::display_pdf_archive($atts = assortment()) has following parameters:

  • title (optional), custom championship above the archive
  • categories (optional), you lot can specify category slugs separated by commas "," - for example [pdf-calorie-free-viewer-archive categories="pinnacle,featured"].
  • template (optional), you can specify template name to override default. Bachelor options are:
    • (empty or not set) - Material masonry (default)
    • masonry-full-thumbs - Masonry full thumbnails
    • ane-page-with-list-nav - Ane page with list navigation
    • one-page-with-thumbs-nav - One folio with thumbnails navigation

WordPress Hooks (actions and filters)

Filters:

  • Conditional assets filter

    • Filter: PDF_LIGHT_VIEWER_PLUGIN.':should_enqueue_frontend_assets'
    • Expected result: Boolean

      When true, the plugin volition include assets fifty-fifty if it cannot detect PDF Light viewer shortcodes.

    • Example (compatible with php 5.3+):

                        add_filter(PDF_LIGHT_VIEWER_PLUGIN.':should_enqueue_frontend_assets', function() { 	return true; // add your custom logic here });                                  
    • Weather condition: Should be added before wp_enqueue_scripts hook is triggered.

CLI usage

Y'all can work with plugin from command line interface. PDF Low-cal Viewer integrated with peachy WP CLI, thus the plugin requires WP CLI to work in command line.

Command wp pdf-light-viewer has following subcommands:

  • bulk-import - Bulk PDF import

    Options:

    • source-dir required, source directory to import PDF files
    • jpeg-compression-quality optional, jpeg pinch quality, default 60
    • jpeg-resolution optional, jpeg resolution, default 300
    • mail service-status optional, PDF post condition, default "draft"
    • import-pdf-file flag, if set then import PDF file to Wordpress media library

    Example:

                  $ cd /path/to/your/wordpress $ wp pdf-calorie-free-viewer bulk-import --source-dir="/path/to/pdfs" --jpeg-pinch-quality=60 --jpeg-resolution=300 --post-status=publish --import-pdf-file                          

    or you can specify wordpress' path via option:

                  $ wp pdf-low-cal-viewer bulk-import --source-dir="/path/to/pdfs" --jpeg-compression-quality=sixty --jpeg-resolution=300 --mail-status=publish --import-pdf-file --path="/path/to/your/wordpress"            

What adjacent?

Cheque Support section to get in impact with our support team.

cutrightthippid.blogspot.com

Source: https://yhconsulting.fr/LesSaules/wordpress/wp-content/plugins/pdf-light-viewer/documentation/

Post a Comment for "The Uploaded File Could Not Be Moved to Wp-content/uploads/2016/04."