ByteScout Data Extraction Suite - VBScript - Convert PDF to Black and White Excluding some page - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

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

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

How to convert PDF to black and white excluding some page in VBScript using ByteScout Data Extraction Suite

ByteScout Data Extraction Suite: the bundle that includes three SDK tools for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK.

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