Batch Convert to HTML5 / SVG

Xodo PDF Studio allows you  to convert PDF documents to an HTML5 web page. This makes it possible to easily publish the content of PDF document onto any website, as HTML5 is supported by all browsers, without the need of a viewer plug-in. The PDF to HTML5 conversion engine in Xodo PDF Studio preserves fonts and uses the SVG format to preserve vector graphics. Sample PDF documents that have been converted to HTML5 can be found HERE.

 

How to Convert a Batch of PDFs to HTML

  1. On the toolbar bar go to the Batch Tab > Convert To > HTML5 / SVG
  2. Set the options for the batch process. Additional details for each of the settings are available below.
    • Select the HTML5 conversion settings you wish to use
    • Using the File List select the files that need to be processed
    • Set the results settings for the processed batch files
    • If needed, set any open passwords to be attempted when processing files
  3. Once all of the settings are complete, click on Start... to begin the batch process.

 

Batch Convert to HTML5 / SVG Settings

HTML5 Conversion Options

The options in the are as follows:

Convert to - Select the output type

  • Single HTML per document: creates a single HTML file for each document being processed
  • Single SVG per document : creates a single SVG file for each document being processed
  • Separate SVG per page: creates individual SVG files for each page of each document being processed

Pages -  The range of pages to be exported as images

  • All Pages: all pages in the document
  • Page Range: set the pages to be exported using the From and To options
  • Even Pages Only: only export the even pages of the document
  • Odd Pages Only: only export the odd pages of the document

Show Page Border - When checked ads a 1px border to the created pages. This makes it easier to distinguish the page are on white documents

Compress Images - When checked will compress images found in the PDF to JPEG in order to reduce the size of the output

JPG Quality – Select the desired quality of JPG compression. Based on the quality parameter. Some guidelines for the quality value: 8 high quality, 5 medium quality, 2 low quality.

  • 0 – very high compression, very low quality
  • 10 – low compression, very high quality

Results

In addition to displaying the preflight results dialog, results can be saved in a variety of configurable ways. If preflighting encounters any errors, these errors can be added to the document as annotations and/or a report detailing the errors can be created. The report is either appended to the document or saved as a new document. The modified document and/or the new report document are saved to the destination folder.

Add comments for preflight errors - whether or not to add annotations to the original document for preflight errors

Create Preflight report - whether or not to create a separate report for the preflight errors using the below options

Append report to document - appends an error report to the beginning of the document

Create new document for report - creates a separate document for the error report that will be exported to the below destination folder

File List

Add Files - Displays a file chooser to add individual files to the list.

Add Folder - Displays a file chooser that adds the contents of a directory to the list.

Set Default Batch Directory - When checked, all files from the default batch directory will be added to the File List each time a batch dialog is opened.

Include Subfolders - When checked, will include any supported file types found within sub folder of the chosen default batch directory.

- Removes the selected file(s) from the list.

- Moves the selected file(s) up the list.

- Moves the selected file(s) down the list.

- Moves the selected file(s) to the top of the list.

- Moves the selected file(s) to the bottom of the list.

Save Files To

Destination Folder

Use Source Folder - When this option is selected, the original folder for the PDF document (in the batch process) will be used to save the output files.

Destination Folder - This option allows you to set a destination folder to place all of the processed files. You can type the destination manually or click on the "..." button to open a directory chooser to set the destination folder

  • Preserve Folder Structure: When checked, the output files will be placed within a new folder (within the specified destination folder) using the file's parent directory name.

File Name Pattern

Use Source Filename - Will save the document using the same original name. If another file exists in the directory, a number will be appended to the output file name, to avoid duplicate file names.

New Filename - When this option is selected, you will need to enter a new filename used for the output files. Each document name will have an incremental counter starting at zero appended to the file name entered in this field. Custom variables may also be used to further distinguish each of the file separations. The available variables are:

  • $filename - The file name (no extension) that the document was opened from
  • $counter - An automatically incrementing number
  • $day - The day of the month
  • $month - The current month, using two digits
  • $year - The current year, using four digits
  • $shortyear - The current year, using two digits
  • $second - The current second
  • $minute - The current minute
  • $hour - The current hour, 1-12
  • $ampm - AM or PM
  • $longhour - The current hour, 0-23

Overwrite Files - When set, if a file with the same name already exists in the directory it will be overwritten with the newly output document.

Note: This CAN NOT be undone. Make sure that you have all your settings correct prior to starting the batch process

Passwords to try when opening documents

To set a password click in the password field or on the Edit button. Then enter the password you want to be used. Do this for up to four passwords to try on password protected PDFs during the batch process.

Note: The passwords entered here will only be used for this batch process and will not be stored anywhere else. Passwords will have to be entered for each new batch process.