This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Create CompressOptions object to set instructions | |
| var options = new CompressOptions(); | |
| // Add input file path | |
| options.AddInput(new FileData("path_to_your_pdf_file.pdf")); | |
| // Set output file path | |
| options.AddOutput(new FileData("path_to_result_pdf_file.pdf")); | |
| // Perform the process | |
| PdfManager.Compress(options); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Create OptimizeOptions object to set instructions | |
| var options = new OptimizeOptions(); | |
| // Add input file path | |
| options.AddInput(new FileData("path_to_your_pdf_file.pdf")); | |
| // Set output file path | |
| options.AddOutput(new FileData("path_to_result_pdf_file.pdf")); | |
| // Perform the process | |
| PdfManager.Optimize(options); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Create RemoveFieldsOptions object to set instructions | |
| var options = new RemoveFieldsOptions(); | |
| // Add input file path | |
| options.AddInput(new FileData("path_to_your_pdf_file.pdf")); | |
| // Set output file path | |
| options.AddOutput(new FileData("path_to_result_pdf_file.pdf")); | |
| // Perform the process | |
| PdfForm.Remove(options); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Get Field Names | |
| var fieldNames = PdfForm.GetNames(new GetFieldNamesOptions("path_to_your_pdf_file.pdf")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Create ExtractFormDataToDsvOptions object to set instructions | |
| var options = new ExtractFormDataToDsvOptions(',', true); | |
| // Add input file path | |
| options.AddInput(new FileData("path_to_your_pdf_file.pdf")); | |
| // Set output file path | |
| options.AddOutput(new FileData("path_to_result_csv_file.csv")); | |
| // Perform the process | |
| PdfForm.Extract(options); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Create ExtractPropertiesOptions object to set input file | |
| var options = new ExtractPropertiesOptions("path_to_your_pdf_file.pdf"); | |
| // Perform the process and get Properties | |
| var pdfProperties = PdfExtractor.Extract(options); | |
| var filename = pdfProperties.FileName; | |
| var title = pdfProperties.Title; | |
| var author = pdfProperties.Author; | |
| var subject = pdfProperties.Subject; | |
| var keywords = pdfProperties.Keywords; | |
| var created = pdfProperties.Created; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Create ExtractFormDataToDsvOptions object to set instructions | |
| var options = new ExtractFormDataToDsvOptions(',', true); | |
| // Add input file path | |
| options.AddInput(new FileData("path_to_your_pdf_file.pdf")); | |
| // Set output file path | |
| options.AddOutput(new FileData("path_to_result_csv_file.csv")); | |
| // Perform the process | |
| PdfExtractor.Extract(options); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Create FlattenFieldsOptions object to set instructions | |
| var options = new FlattenFieldsOptions(); | |
| // Add input file path | |
| options.AddInput(new FileData("path_to_your_pdf_file.pdf")); | |
| // Set output file path | |
| options.AddOutput(new FileData("path_to_result_pdf_file.pdf")); | |
| // Perform the process | |
| PdfForm.Flatten(options); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Create TocOptions object to set instructions | |
| var options = new TocOptions(); | |
| // Set the Title | |
| options.Title = "My Table of Contents"; | |
| // Generate links in bookmarks | |
| options.GenerateBookmarks = true; | |
| // Design Headings | |
| options.Headings.Add(new TocHeading("Introduction", 2, false, 1)); | |
| options.Headings.Add(new TocHeading("Chapter I", 3, true, 1)); | |
| options.Headings.Add(new TocHeading("Chapter II", 4, true, 1)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Create PdfToDocOptions object to set instructions | |
| var options = new PdfToDocOptions(); | |
| // Add input file path | |
| options.AddInput(new FileData("path_to_your_pdf_file.pdf")); | |
| // Set output file path | |
| options.AddOutput(new FileData("path_to_result_file.doc")); | |
| // Perform the process | |
| PdfConverter.Convert(options); |
NewerOlder