If you want to quickly learn then these fast application programming interfaces of ByteScout PDF Suite for VBScript plus the guideline and the VBScript code below will help you quickly learn hide text or vector or image layer in pdf with pdf renderer sdk. Just copy and paste this VBScript sample code to your VBScript application’s code editor, add a reference to ByteScout PDF Suite (if you haven’t added yet) and you are ready to go! Want to see how it works with your data then code testing will allow the function to be tested and work properly.
Trial version along with the source code samples for VBScript can be downloaded from our website
' Create Bytescout.PDFRenderer.RasterRenderer object Set renderer = CreateObject("Bytescout.PDFRenderer.RasterRenderer") renderer.RegistrationName = "demo" renderer.RegistrationKey = "demo" ' Load sample PDF document renderer.LoadDocumentFromFile "../../multipage.pdf" Set renderingOptions = CreateObject("Bytescout.PDFRenderer.RenderingOptions") ' Enable text objects rendering renderingOptions.RenderTextObjects = True ' DISABLE vector objects rendering renderingOptions.RenderVectorObjects = False ' DISABLE image objects rendering renderingOptions.RenderImageObjects = False ' Render PDF document at 96 DPI - default PC display resolution ' To get higher quality output, set 200, 300 or more Dim renderingResolution renderingResolution = 96 ' iterate through pages For i=0 To renderer.GetPageCount()-1 ' Render document page to PNG image file renderer.Save_2 "image" & i & ".png", 2, i, renderingResolution, (renderingOptions) Next