PDF Generation Template Editor
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
To make a searchable PDF by adding invisible text to an image based PDF such as a scanned document using OCR.
When outputting a searchable PDF, you can use the following option to control the hidden text layer:
TransparentText: Whether to output a transparent text layer.Full code sample which shows how to use the ComPDF OCR module on scanned documents in multiple languages.
inputFilePath := "***"
password := "***"
outputFileName := "***"
pdfOptions := compdf.NewSearchablePdfOptions()
pdfOptions.EnableOCR = true
err := compdf.StartPDFToSearchablePDF(inputFilePath, password, outputFileName, pdfOptions, nil)