Link Search Menu Expand Document

PDF to Scanned PDF - VB.NET

PDF Extractor SDK sample in VB.NET demonstrating ‘PDF to Scanned PDF’

Imports Bytescout.PDFExtractor

Module Module1

    ' This sample demonstrates converting PDF to Scanned PDF
    Sub Main()

        ' Create Bytescout.PDFExtractor.UnsearchablePDFMaker instance
        Dim unsearchablePDFMaker = New UnsearchablePDFMaker()
        unsearchablePDFMaker.RegistrationName = "demo"
        unsearchablePDFMaker.RegistrationKey = "demo"

        ' Load sample PDF document

        ' Set PDF rendering resolution to 150 DPI. Higher value - better quality, but larger output file.
        unsearchablePDFMaker.RenderingResolution = 150
        ' Set embedded images format
        unsearchablePDFMaker.ImageFormat = EmbeddedImageFormat.PNG

        ' Process the document

        ' Cleanup

        ' Open the result PDF file in default associated application
        Dim processStartInfo As New ProcessStartInfo("result.pdf")
        processStartInfo.UseShellExecute = True

    End Sub

End Module

Download Source Code (.zip)

Return to the previous page Explore PDF Extractor SDK