ByteScout Premium Suite - VBScript - Convert PDF to Black and White Excluding some page - ByteScout

ByteScout Premium Suite – VBScript – Convert PDF to Black and White Excluding some page

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

How to convert PDF to black and white excluding some page in VBScript and ByteScout Premium Suite

ByteScout Premium Suite: the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording.

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