mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-20 03:17:57 +08:00
add more examples to the examples solution
This commit is contained in:
@@ -21,12 +21,27 @@
|
||||
() => OpenDocumentAndExtractWords.Run(Path.Combine(filesDirectory, "Two Page Text Only - from libre office.pdf")))
|
||||
},
|
||||
{2,
|
||||
("Extract Text with newlines (using built-in content extractor)",
|
||||
() => ExtractTextWithNewlines.Run(Path.Combine(filesDirectory, "Two Page Text Only - from libre office.pdf")))
|
||||
},
|
||||
{3,
|
||||
("Extract images",
|
||||
() => ExtractImages.Run(Path.Combine(filesDirectory, "2006_Swedish_Touring_Car_Championship.pdf")))
|
||||
},
|
||||
{3,
|
||||
("Extract Text with newlines (using built-in content extractor)",
|
||||
() => ExtractTextWithNewlines.Run(Path.Combine(filesDirectory, "Two Page Text Only - from libre office.pdf")))
|
||||
{4,
|
||||
("Merge PDF Documents",
|
||||
() => MergePdfDocuments.Run(Path.Combine(filesDirectory, "Two Page Text Only - from libre office.pdf"),
|
||||
Path.Combine(filesDirectory, "2006_Swedish_Touring_Car_Championship.pdf"),
|
||||
Path.Combine(filesDirectory, "Rotated Text Libre Office.pdf")))
|
||||
},
|
||||
{5,
|
||||
("Extract form contents",
|
||||
() => GetFormContents.Run(Path.Combine(filesDirectory, "AcroFormsBasicFields.pdf")))
|
||||
},
|
||||
{6,
|
||||
("Generate PDF/A-2A compliant file",
|
||||
() => GeneratePdfA2AFile.Run(Path.Combine(filesDirectory, "..", "..", "Fonts", "TrueType", "Roboto-Regular.ttf"),
|
||||
Path.Combine(filesDirectory, "smile-250-by-160.jpg")))
|
||||
}
|
||||
};
|
||||
|
||||
@@ -53,6 +68,12 @@
|
||||
}
|
||||
|
||||
act.action.Invoke();
|
||||
|
||||
Console.WriteLine();
|
||||
Console.WriteLine();
|
||||
|
||||
Console.WriteLine(choices);
|
||||
Console.WriteLine();
|
||||
} while (true);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user