pkpdfconverter extract-text -i protected.pdf -o content.txt --password mypass123
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) |
Use with:
if (result.Success) Console.WriteLine("Converted successfully"); var options = new ConversionOptions