PDF Software, Scripts

Using VeryUtils PDF Form to HTML5 Web Form Converter to Display PDF as HTML Form and Publish Interactive PDF to web forms

I want display a PDF as an html page, where the user will be allowed to enter the fillable data. My problem is not how to import/fill data (I was able to do it using FDF/XML data format). My only concern is how to show it to the user so that he/she can see the form, fill/edit data, and should be done with it.

I tried saving the PDF as an image file, and showing it as an background-image - but it was very crude! - I am hoping that there should be some elegant solution.

Thanks for you help!
Customer
--------------------------------------
Above question was sent from a customer, he want to fill the fillable PDF forms in web page directly and without require Adobe Reader installed in the user's system. Fortunately, VeryUtils PDF Form to HTML5 Form Converter is a product which can 100% meet this customer's requirement. VeryUtils PDF Form to HTML5 Web Form Converter can be tested from this web page,

https://veryutils.com/pdf-to-html5-form-filler-for-php

PDF form filling using AcroForm is an important part of many workflows. It allows data entry directly on print ready media with ability to import, export, submit or email data for further processing. By running VeryUtils PDF Form to HTML5 Fillable Form SDK on backend PDF Form can be populated with filled data, flattened or even signed.

image

Automated PDF Form Filling in Web Browser.
"VeryUtils PDF Form to HTML5 Fillable Form SDK" conversion brings unique experience of form filling directly in the browser with full support of AcroForm technology including JavaScript support. This allows new level of PDF Form processing and workflows without need of having PDF Readers installed on computer or even on a mobile device.

Converted HTML form contains Text fields, Dropdowns, List boxes, Radio buttons, Checkboxes and can be submitted like any other HTML form.

With unique support of document and form field JavaScript, "VeryUtils PDF Form to HTML5 Fillable Form SDK" produces ready-to-use HTML that enables PDF manipulation, form fields value formatting, calculations, validations or custom scripts known from the desktop PDF viewers.

PDF Form conversion to HTML using "VeryUtils PDF Form to HTML5 Fillable Form SDK" allows adding JavaScript, CSS or other content directly into HTML to enrich form filling experience, additional content and functionality.

PDF files provide support for interactive forms using 2 different technologies (FDF and XFA). Browsers are no longer able to display these files but VeryUtils can convert both formats into HTML5 forms making it possible to continue using PDF forms in a web Browser.

The Online PDF Forms to HTML5 converter is an online service to convert single PDF files into standalone HTML5 with interactive forms.

The conversion is done by the server application VeryUtils, running on customers cloud or physical servers. VeryUtils can be run from any Computer language as a simple micro-service to convert PDF Forms to HTML5. VeryUtils is for customers who want to convert many PDF files to HTML5 automatically as part of their workflow.

VeryUtils includes a large number of optimizations not in the online converter, including the ability process lots of PDF forms and much more control over the conversion process.

You may test Online PDF form to HTML5 Form Filler function from this web page,

https://veryutils.com/pdf-to-html5-form-filler-for-php

You may click "Live Demo" button to open a web page for Online PDF form to HTML5 Form Filler web application, in this web application, you can upload a fillable PDF file or enter a URL to a fillable PDF file on the internet,

image

Click "Fill PDF Forms" button, your PDF file will be converted to HTML5 fillable forms, then you can fill the data into forms online,

image

after you finish the filling, you may click "Save PDF" or "Save FDF" or "Save CSV" or "Save Web" buttons to save the filled data to a PDF file, FDF file, CSV file or save into database. After you subscribe this Online application, this web application will able to call your web application, and post the filled data to your web application, your web application could receive the data and process the data continue, such as "save to database" or "send an email to user" or something else.

image

If you have any question or if you need any special functions for this Online PDF Form to HTML5 Web Form Converter application, please feel free to let us know, we are glad to assist you asap.

PDF Software

VeryUtils StampPDF Batch Command Line does Use Automation to Add Text and Image Imprints to PDF Documents

 

VeryUtils StampPDF Batch Command Line supports High Volume Stamping and Customization of PDF Files.

Does your company need to add watermark to a large number of PDF documents in an unattended or server environments? if yes, StampPDF Batch Command Line software is a good choice to you. With StampPDF Batch Command Line software, you can add custom text, images, watermarks, etc. elements to PDF documents in a batch processing mode.

https://veryutils.com/pdf-stamper-command-line

image

StampPDF Batch Command Line software is used in many industries, including:

  • by manufacturers for document processing;
  • by publishers for pre-publication review;
  • by law firms to add Bates numbering;
  • by Government agencies and Courts to certify electronic submission date and time, as part of a Social DRM process;
  • by any organization that needs to dynamically personalize documents;
  • and more.

StampPDF Batch Command Line is a powerful server-based application designed for high-volume, unattended and mission-critical on-demand environments.

VeryUtils StampPDF Batch Command Line features:
* Stamping & Watermarking with StampPDF Batch Command Line software.
* Apply copyright notices, disclaimers or other text in your choice of font, point size and color.
* Place multi-line stamps, specify lines, line-breaks, precise location and rotate text stamps to any angle.
* Stamp JPEG, TIFF or PDF files; resize, scale and position them precisely.
* Specify transparency level for stamped text or images.
* Automatic placement based on page size.
* Automatic placement based on page diagonals; for example, top-left to bottom-right.
* Remove stamps that are no longer needed as documents move through the workflow.
* Autoscale Text Size to fit to the page size, by percentage of the page size.
* Use over 30 built-in stamping variables, including file and path name, document information, page, Bates numbers, and date and time in a variety of formats.
* Apply consecutive Bates numbering across multiple files.
* Stamp invisible text on documents (invisible text can be indexed by search engines).
* Supports Unicode.
* Supports TrueType and OpenType fonts.
* Supports Chinese, Japanese and Korean (CJK) fonts.
* Includes new document information, including title, subject, keywords, date or other metadata, in PDF document Information fields and in XML via the eXtensible Metadata Platform (XMP).
* Apply 40-bit or 128-bit file encryption to your stamped documents using owner and user passwords to control access and ability to modify the document.
* Supports 256 bit AES security.
* Linearize PDF files for network and web-server deployment via Fast Web View.
* Optimize output files to reduce file size.
* Maintain the same PDF version number as the input file.

You may download the trial version of StampPDF Batch Command Line from this web page to try,

https://veryutils.com/pdf-stamper-command-line

PDFStamp Command Line Command Line Examples:

//Transparent function
pdfstamp.exe -PDF "example.pdf" -o "opacity.pdf" -AT "VeryPDF Opacity" -FT "Arial" -P9 -FS100 -opacity50 -C#FF0000 -AI logo.jpg -opacity80 -P2 -AL -LW30 -opacity30 -LINEEX 100,100,200,200

//New layer function
pdfstamp.exe -newlayer "VeryPDF New Layer" -PDF "example.pdf" -o "newlayer.pdf" -AT "VeryPDF New\nLayer Test" -FT "Arial" -P9 -FS100 -opacity50 -R45 -C#0000FF -AI logo.jpg -opacity80 -P2 -AL -LW30 -opacity30 -LINEEX 100,100,200,200

//Encryption function
pdfstamp.exe -newlayer "VeryPDF New Layer" -PDF "example.pdf" -o "encryption.pdf" -AT "VeryPDF New\nLayer Test" -FT "Arial" -P9 -FS100 -opacity50 -R45 -C#0000FF -AI logo.jpg -opacity80 -P2 -AL -LW30 -opacity30 -LINEEX 100,100,200,200 -encrypt -openpwd=123 -ownerpwd=456 -keylen=2 -encryption=3900

//Bates Number function
pdfstamp.exe -PDF "example.pdf" -o "bates-numbers.pdf" -AT "Bates Numbers \B(0000105)" -p3 -mlr-30 -mtb30 -fs10 -fn300 -c#FF0000

//PDFS function, batch stamping
pdfstamp.exe -PDFs "C:\*.pdf" -o "C:\out" -AT "An example for '-PDFS' parameter" -p2 -fs32 -c2666666 -mtb200

//Page range function
pdfstamp.exe -PDF "example.pdf" -o "18.pdf" -SR -s-2 -e-2 -AT "Set which pages to stamp on by selecting a predefined range." -p2 -fs32 -c2666666 -mtb200

//Link function
pdfstamp.exe -PDF "example.pdf" -o "17.pdf" -AT "Supports web links" -p2 -fs32 -c255 -mlr-50 -mtb200 -r15 -u "http://www.verypdf.com" -AT "Supports page links" -p4 -fs32 -c255 -mlr-50 -mtb200 -go 3 -AI "logo.jpg" -p9 -r15 -l -op "openlink.txt"

//Line function
pdfstamp.exe -PDF "example.pdf" -o "16.pdf" -AT "\d\n\t" -fs10 -p7 -c255 -mlr70 -mtb-50 -AT "Page \p of \c " -fs10 -p5 -c255 -mlr-70 -mtb-50 -AT "2003 verypdf.com Inc." -p3 -mlr-60 -mtb60 -fs10 -fn300 -c255 -AL -p2 -mtb80 -w80 -AL -p6 -mtb-80 -w80

//Image stamp function
pdfstamp.exe -PDF "example.pdf" -o "15.pdf" -AI "logo.jpg" -p2 -r-45 -mlr80 -mtb200 -w300 -h300 -l

//Text stamp function
pdfstamp.exe -PDF "example.pdf" -o "14.pdf" -AT "verypdf.com Inc." -p7 -fs48 -c165296 -r-45 -mtb-100 -AT "verypdf.com Inc." -p7 -fs48 -c1652962 -r-45 -mtb-200 -mlr50 -AT "verypdf.com Inc." -p7 -fs48 -c16529621 -r-45 -mtb-300 -mlr100 -AT "verypdf.com Inc." -p7 -fs48 -c165296210 -r-45 -mtb-400 -mlr150 -AT "verypdf.com Inc." -p7 -fs48 -c165210 -r-45 -mtb-500 -mlr200

//Image rotation and position
pdfstamp.exe -PDF "example.pdf" -o "13.pdf" -AI "logo.jpg" -p9 -r-45 -mlr-70 -mtb-70 -AI "logo.jpg" -p9 -r225 -mlr70 -mtb-70 -AI "logo.jpg" -p9 -r135 -mlr70 -mtb70 -AI "logo.jpg" -p9 -r45 -mlr-70 -mtb70

//Text rotate and position
pdfstamp.exe -PDF "example.pdf" -o "12.pdf" -AT "verypdf.com Inc." -p1 -fs48 -c65296 -r-45 -AT "verypdf.com Inc." -p3 -fs48 -c65296 -r45 -AT "verypdf.com Inc." -p5 -fs48 -c65296 -r-45 -AT "verypdf.com Inc." -p7 -fs48 -c65296 -r45

//Web links
pdfstamp.exe -PDF "example.pdf" -o "11.pdf" -AT "Supports web links" -p2 -fs48 -c255 -mlr-50 -mtb200 -u "http://www.verypdf.com" -AT "Enabling you to easily position the stamp\n in any location on the page" -p4 -fs10 -c255 -mlr-50 -mtb200 -u "http://www.verypdf.com"

//Wrap text to a new line if it too long to fit in its margined area
pdfstamp.exe -PDF "example.pdf" -o "10.pdf" -AT "Wrap text to a new line if it would otherwise be too long to fit in its margined area." -p9 -fs64 -c2666666

//Image stamp, vertical center
pdfstamp.exe -PDF "example.pdf" -o "9.pdf" -AI "logo.jpg" -p4 -r90 -mlr-10 -AI "logo.jpg" -p8 -r-90 -mlr10

//Image stamp function
pdfstamp.exe -PDF "example.pdf" -o "8.pdf" -AI "logo.jpg" -p7 -mlr30 -mtb-30 -AI "logo.jpg" -p3 -mlr-30 -mtb30

//hollow tridimensional effect
pdfstamp.exe -PDF "example.pdf" -o "7.pdf" -AT "www.verypdf.com" -p9 -r45 -c2105376 -fs64 -mtb2 -mlr2 -l -h -AT "www.verypdf.com" -p9 -r45 -c255 -fs64 -l -h

//tridimensional effect
pdfstamp.exe -PDF "example.pdf" -o "6.pdf" -AT "www.verypdf.com" -p9 -r45 -c2105376 -fs64 -mlr1 -mtb1 -AT "www.verypdf.com" -p9 -r45 -c255 -fs64

//Stamps can be placed in the exact vertical center of a page (or the exact vertical center within a individual stamping space)
pdfstamp.exe -PDF "example.pdf" -o "5.pdf" -AT "www.verypdf.com" -p9 -c65535 -fn101 -fs48 -AT "www.verypdf.com" -p8 -r90 -fs48 -c12345678 -AT "www.verypdf.com" -p4 -r-90 -fs48 -c12345678

//Test Font Style, Font Size, Text Modes (solid, outline), Grayscale and RGB Color (0-255 RGB color values supported)
//Place stamp under original PDF page contents
//Text and Image can be stamped at any angle, any positive or negative numbers, including decimal numbers may be used to specify an angle in degrees
pdfstamp.exe -PDF "example.pdf" -o "4.pdf" -AT "www.verypdf.com" -p9 -r-20 -c13684944 -fs48 -fn201 -h

//Grayscale Color (0-255 RGB color values supported)
//Stamp at topmost or bottommost of the original PDF page contents
pdfstamp.exe -PDF "example.pdf" -o "3.pdf" -AT "Page \p of \c " -fs10 -p5 -AT "www.verypdf.com\n Demo" -p9 -r-45 -c13684944 -fs48 -l -fn301

//Test Font Style, Font Size, Text Modes (solid, outline), Grayscale and RGB Color (0-255 RGB color values supported)
//Top, bottom, vertical center, diagonal-top left and diagonal-bottom left
//Test multiple line text stamps within one stamp item
pdfstamp.exe -PDF "example.pdf" -o "2.pdf" -AT "Sample File\nVeryPDF" -p3 -fn300 -AT "Copyright verypdf.com, Inc." -p6 -c255 -AT "www.verypdf.com\n Demo" -p9 -fn200 -r-45 -c255 -fs48 -h

//Text stamp
//page header and page footer
//Stamps are placed in the duplicate file, leaving the original copy unchanged
pdfstamp.exe -PDF "example.pdf" -o "1.pdf" -AT "\d\n\t - (\f)" -fs10 -p7 -c255 -mlr50 -mtb-30 -AT "Page \p of \c " -fs10 -p5 -c255 -mlr-50 -mtb-30 -AT "2003 verypdf.com Inc.\n\F" -p3 -mlr-30 -mtb30 -fs10 -fn300 -c2666666

//Register PDFStamp Command Line
pdfstamp.exe -REG "Your registration key"

PDF Software

How to scale PDF content and page dimensions using PDF Page Resizer Command Line?

I have a set of PDF files. I need to re-scale all of these PDF files, preferably at the command line, I need a Command-line utility to batch resize PDF files. Is there any tool to batch resize (change dpi, e.g. from 600 dpi to 300 dpi) large amount (100,000+) PDF files?
---------------------------------
How to resize a PDF's pages?

I got a PDF file for which I want to change its pages' sizes; let's call it file.pdf. And I got another PDF file which will serve as the model to file.pdf; let's call it model.pdf.

To clarify: I want file.pdf's pages to be of equal measure as model.pdf's pages.
---------------------------------
Convert pdf to a different page size (US Letter -> A4)

I'm trying to print a simple US Letter document, but for some reason, I just cannot manage to fit it properly onto A4 when printing multiple pages per-list.

I have tried converting the pdf using:

gs -o print.pdf -sDEVICE=pdfwrite -sPAPERSIZE=a4 -dFIXEDMEDIA -pPDFFitPage -dCompatibilityLevel=1.4 input.pdf

But this does not seem to have any effect on the document, it still shows as US letter.

Any way how to convert a pdf to A4 format?
---------------------------------
How to scale the page content of PDF files? How to Scale to fit and resize PDF pages?

I'm try to resize a single PDF so that:
* its contents are scaled to fit the page.
* the new page has the size I want.
---------------------------------

image
We often received above questions from our customer, they want to resize the paper size of their PDF files, from Command Line on the Windows system. Fortunately, VeryUtils has a PDF Page Resizer Command Line software, this software can be used to resize the paper size in the PDF files from Command Line.

You may download the trial version of PDF Page Resizer Command Line from this web page first,

https://veryutils.com/pdf-page-resizer-command-line

After you download and unzip it to a folder, you may run a CMD window, then you can run following command line in this CMD window to resize the paper size of your PDF files,

pdfresizer.exe -$ XXXX-XXXX-XXXX-XXXX -resizepaper "595x842" test.pdf _test-595x842.pdf
pdfresizer.exe -$ XXXX-XXXX-XXXX-XXXX -resizepaper "612x792" test.pdf _test-612x792.pdf
pdfresizer.exe -$ XXXX-XXXX-XXXX-XXXX -resizepaper "1000x1000" test.pdf _test-1000x1000.pdf
pdfresizer.exe -$ XXXX-XXXX-XXXX-XXXX -resizepaper "842x1191" test.pdf _test-842x1191.pdf
pdfresizer.exe -$ XXXX-XXXX-XXXX-XXXX -resizepaper "1191x1684" test.pdf _test-1191x1684.pdf
pdfresizer.exe -$ XXXX-XXXX-XXXX-XXXX -resizepaper "1684x2384" test.pdf _test-1684x2384.pdf
pdfresizer.exe -$ XXXX-XXXX-XXXX-XXXX -resizepaper "612x1009" test.pdf _test-612x1009.pdf

You can also call pdfresizer.exe from PHP script code to resize PDF pages on your server, for example,

<?php

echo shell_exec("D:\\pdfresizer.exe -$ XXXX-XXXX-XXXX-XXXX -resizepaper 595x842 D:\\test.pdf D:\\_test-595x842.pdf 2>&1");
echo shell_exec("D:\\pdfresizer.exe -$ XXXX-XXXX-XXXX-XXXX -resizepaper 595x842 D:\\test.pdf D:\\_test-595x842.pdf 2>&1");
echo shell_exec("D:\\pdfresizer.exe -$ XXXX-XXXX-XXXX-XXXX -resizepaper 842x1191 D:\\test.pdf D:\\_test-842x1191.pdf 2>&1");

?>

pdfresizer.exe is a Windows Command Line application, it doesn't support Linux system yet, if you wish use it on the Linux system, please feel free to let us know, we will figure out a solution to you asap.

PDF Software

How to trim the generated PNG image files automatically from Virtual PDF Printer Driver?

I'm using your Virtual PDF Printer to convert my documents to PNG Image files with trimming currently. However, I encountered a problem recently.

open issue: settings disappear from registry in my system,

e.g. like to set,

AutomaticDirectory
AutomaticOutput
AutoTrimImage

image001(06-26-09-20-29)[4]

After print a document to "e-PDF Converter and Creator" virtual PDF Printer, the settings are deleted and ignored,

image002(06-26-09-20-29)[4]

Print result, is not a trimmed png, it's a un-trimmed pdf file,

image003(06-26-09-20-29)[4]

Please support.

Customer
---------------------------------------------------------------

Thanks for your message, I'm by following steps to test this issue in my system,

1. Set following values into registry,

HKEY_CURRENT_USER\Software\e-pdfconverter\pdfcreator
AutomaticDirectory=D:\downloads\out.png ; REG_SZ Type
AutomaticOutput=1 ; REG_DWORD Type
AutomaticValue=2; REG_DWORD Type
AutoTrimImage=1; REG_DWORD Type

xResolution=300; REG_DWORD Type
yResolution=300; REG_DWORD Type

2. Open "C:\Program Files (x86)\e-PDF Converter and Creator v2.2\config.ini" file in notepad application with administrator privilege, set following options into it,

[options]
UseLocalMachine=0
FileSaveDefExt=.png
EmptyFileNameAfterPrinting=0

3. Delete following cache file from your system if it exists,

"C:\Users\Your-Name\AppData\Local\VirtualStore\Program Files (x86)\e-PDF Converter and Creator v2.2\config.ini"

4. Print a document to "e-PDF Converter and Creator" printer, you will get a trimmed PNG file properly, the values in registry will be kept also.

The following is a screenshot for trimmed PNG image file,

image

"Image Generation" and "Trim Image" functions have been integrated into PDF Virtual Printer product, you may download the trial version of PDF Virtual Printer from this web page to try, if you encounter any problem with this product, please feel free to let us know, we are glad to assist you asap,

https://veryutils.com/pdf-virtual-printer

VeryUtils

Scripts

PHP File Integrity Checker is a Real-Time Monitoring for PHP source code

PHP File Integrity Checker is a Real-Time Monitoring for PHP source code. Basically it computes the sha hash of all requested files. Your PC queries periodically the script and alerts you if the returned hash changes.

image

Ask yourself how you might address the following circumstances when managing a website:

* A file is unintentionally added, modified or deleted
* A file is maliciously added, modified or deleted
* A file becomes corrupted

More importantly, would you even know if one of these circumstances occurred? If your answer is no, then keep reading. In this guide I will demonstrate how to use PHP File Integrity Checker to monitor the integrity of your files.

image

The best way to determine whether or not a file has been altered is to hash its contents. PHP File Integrity Checker is written in PHP source code, after you buy it, you will get the full source code, then you can deploy it to your server to monitor all folders in your server easily.

The first, you may buy its source code from this web page,

https://veryutils.com/php-file-integrity-checker

after you buy it, you will get a source code package, please upload this source code package to your server, and unzip it to a folder, you will get a folder with following files,

image

Now, you can run following command lines to add all monitored folders to the database, PHP File Integrity Checker using a SQLite database, so you needn't setup a MySQL database first.

php file-integrity-checker.php listfiles=1 folder=/mywebsite.com/admin
php file-integrity-checker.php listfiles=1 folder=/mywebsite.com/app
php file-integrity-checker.php listfiles=1 folder=/mywebsite.com/blog
php file-integrity-checker.php listfiles=1 folder=/mywebsite.com/catalog
php file-integrity-checker.php listfiles=1 folder=/mywebsite.com/community
php file-integrity-checker.php listfiles=1 folder=/mywebsite.com/demo
php file-integrity-checker.php listfiles=1 folder=/mywebsite.com/dev
php file-integrity-checker.php listfiles=1 folder=/mywebsite.com/downloads
php file-integrity-checker.php listfiles=1 folder=/mywebsite.com/images
php file-integrity-checker.php listfiles=1 folder=/mywebsite.com/storage
php file-integrity-checker.php listfiles=1 folder=/mywebsite.com/system
php file-integrity-checker.php listfiles=1 folder=/mywebsite.com/vqmod

You can run same command line more times to add more folders that you want to monitor, file-integrity-checker.php will calculate the hash values for all files in this folder and its sub-folders recursively.

If some files have been modified in a folder, for example, you changed a folder in "/mywebsite.com/dev" folder, you may simple run following command line to update the hash values for this folder again,

php file-integrity-checker.php listfiles=1 folder=/mywebsite.com/dev

When you need to verify the files' Integrity, you may run following command line,

php file-integrity-checker.php verifyfiles=1

file-integrity-checker.php will compare the hash values for all monitored files automatically, if it detects the change in a file, it will print out the information to console.

You can also run following command line to send the alert to an email address,

php file-integrity-checker.php verifyfiles=1 email=support@veryutils.com

You can call file-integrity-checker.php from Cron Service, then you can monitor all files on your server periodically, for example, per hour or per day, if some files will be changed, you will able to receive the alert email immediately.

PHP File Integrity Checker is a simple but useful PHP Script Code to protect the files on your server, you may also modify it to best meet your requirements, if you need it, you may buy it from following web page directly,

https://veryutils.com/php-file-integrity-checker

What Are Cron Jobs?
Cron is a scheduler which is time-dependent. This feature is available in Mac, FreeBSD and Linux as well. The scheduled activities which are performed through them are referred to as cron jobs.