Writing of the code to hide text or vector or image layer in pdf with pdf renderer sdk in VBScript can be done by developers of any level using ByteScout Premium Suite. Hide text or vector or image layer in pdf with pdf renderer sdk in VBScript can be applied with ByteScout Premium Suite. ByteScout Premium Suite is the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording.
Save time on writing and testing code by using the code below and use it in your application. Just copy and paste this VBScript sample code to your VBScript application’s code editor, add a reference to ByteScout Premium Suite (if you haven’t added yet) and you are ready to go! VBScript application implementation mostly involves various stages of the software development so even if the functionality works please check it with your data and the production environment.
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