ByteScout PDF Extractor SDK - VBScript - Convert PDF to Black and White Excluding some page - ByteScout

ByteScout PDF Extractor SDK – VBScript – Convert PDF to Black and White Excluding some page

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Extractor SDK – VBScript – Convert PDF to Black and White Excluding some page

How to convert PDF to black and white excluding some page in VBScript with ByteScout PDF Extractor SDK

What is ByteScout PDF Extractor SDK? It is the SDK that helps developers to extract data from unstructured documents, pdf, images, scanned and electronic forms. Includes AI functions like automatic table detection, automatic table extraction and restructuring, text recognition and text restoration from pdf and scanned documents. Includes PDF to CSV, PDF to XML, PDF to JSON, PDF to searchable PDF functions as well as methods for low level data extraction.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

MakePDFBlackAndWhiteExcludingSomePage.vbs

      
' 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") ' Larger resolution - longer processing and larger PDF file size unsearchablePDFMaker.RenderingResolution = 300 ' Enable Black and White mode unsearchablePDFMaker.Grayscale = true ' Enable skipping black and white conversation of pages in range unsearchablePDFMaker.KeepSkippedPages = true ' Second parameter to metohd prepresents "ranges" parameter ' "ranges" param is comma-separated list of page ranges in form "1-4,5,7,8-15,16-". ' Pages covered by it will be converted to Black and White. ' Page numbers are 1-based. Ending "-" means "to the last page". ' You can also use inverted page numbers adding '!' before the number. E.g. "!1" means "the last page", ' "2-!2" means "from the second to the penultimate page", "!2-" - last two pages unsearchablePDFMaker.MakePDFUnsearchable_2 "result.pdf", "1" WScript.Echo "Unsearchable document saved as 'result.pdf'."

VIDEO

ON-PREMISE OFFLINE SDK

Get 60 Day Free Trial

See also:

ON-DEMAND REST WEB API

Get Your API Key

See also:

Tutorials:

prev
next