Pkpdfconverter Now
pkpdfconverter convert -i slides.pdf -o slide.png --format png --page-range 1-5 --image-dpi 150
pkpdfconverter convert -i scanned.pdf -o editable.docx --format docx --ocr --ocr-language eng+spa using PkSoft.PdfConverter; // Basic conversion var converter = new PdfConverter(); var result = converter.Convert( inputPath: "document.pdf", outputPath: "document.docx", targetFormat: OutputFormat.Docx );
"defaultOutputFormat": "docx", "imageDpi": 150, "ocrEnabled": false, "ocrLanguage": "eng", "tempFolder": "C:\\temp\\pdfconverter", "timeoutSeconds": 300, "preserveBookmarks": true, "logLevel": "info" pkPdfConverter
pkpdfconverter batch -i ./invoices/ -o ./html/ --format html --recursive
PageRange = new PageRange(2, 5), // pages 2-5 only ImageDpi = 200, PreserveHyperlinks = true, OcrEnabled = true, OcrLanguage = "eng+fra", Password = "user123" ; converter.ConvertAsync("input.pdf", "output.html", OutputFormat.Html, options); var batch = new BatchConverter(); batch.AddFiles(Directory.GetFiles(@"C:\docs", "*.pdf")); batch.ConvertAll(outputFolder: @"C:\out\", format: OutputFormat.Txt); 5. Supported Conversions & Limits | From | To | Supported features | |------------|---------------|--------------------------------------------| | PDF | DOCX | Text, tables, images, basic styling | | PDF | HTML | CSS inline, responsive layout option | | PDF | PNG/JPEG | Page-per-image, DPI configurable (72-600) | | PDF | TXT | Raw text extraction, encoding: UTF-8 | | PDF | CSV | Extracts tables as CSV (detects grids) | | Image (jpg/png/tiff) | PDF | Merged into single PDF | | DOCX | PDF | High-fidelity (requires Word interop on Windows, LibreOffice otherwise) | pkpdfconverter convert -i slides
pkpdfconverter convert -i report.pdf -o report.docx --format docx
pkpdfconverter extract-text -i protected.pdf -o content.txt --password mypass123 var result = converter.Convert( inputPath: "document.pdf"
Use with:
if (result.Success) Console.WriteLine("Converted successfully"); var options = new ConversionOptions