Last active
December 24, 2023 06:35
-
-
Save groupdocs-com-kb/6be4a5a59270ad75a5e8fe459540300a to your computer and use it in GitHub Desktop.
Convert PDF to PCL Using C#. For more information, please follow link: https://kb.groupdocs.com/conversion/net/convert-pdf-to-pcl-using-csharp/
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
using GroupDocs.Conversion; | |
namespace ConvertPDFtoPCLUsingCSharp | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
// Set License to avoid the limitations of Conversion library | |
License lic = new License(); | |
lic.SetLicense(@"GroupDocs.Conversion.lic"); | |
// Load the source PDF file | |
using (var converter = new Converter("input.pdf")) | |
{ | |
var options = converter.GetPossibleConversions()["pcl"].ConvertOptions; | |
// Convert to PCL format | |
converter.Convert("converted.pcl", options); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment