Free Trial
Web API version
Licensing
Request A Quote
HAVE QUESTIONS OR NEED HELP? SUBMIT THE SUPPORT REQUEST FORM or write email to SUPPORT@BYTESCOUT.COM
PDF to Scanned PDF | VBScript
PDFtoScannedPDF.vbs:
VB
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '' This sample demonstrates convrting PDF to Scanned PDF '' ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' Create Bytescout.PDFExtractor.UnsearchablePDFMaker object Set unsearchablePDFMaker = CreateObject("Bytescout.PDFExtractor.UnsearchablePDFMaker") unsearchablePDFMaker.RegistrationName = "demo" unsearchablePDFMaker.RegistrationKey = "demo" ' Load sample PDF document unsearchablePDFMaker.LoadDocumentFromFile("sample1.pdf") ' Set PDF rendering resolution to 150 DPI. Higher value - better quality, but larger output file. unsearchablePDFMaker.RenderingResolution = 150 ' Set embedded images format unsearchablePDFMaker.ImageFormat = 0 ' JPEG = 0; PNG = 1 ' Set quality factor for JPEG format; from 0 to 100; default is 90. ' Lower quality - smaller the result file. unsearchablePDFMaker.JPEGQuality = 60 ' Process the document unsearchablePDFMaker.MakePDFUnsearchable("result.pdf") WScript.Echo "Unsearchable document saved as 'result.pdf'."