Skip to content

Instantly share code, notes, and snippets.

@groupdocs-com-kb
Last active December 24, 2023 06:35
Show Gist options
  • Save groupdocs-com-kb/6be4a5a59270ad75a5e8fe459540300a to your computer and use it in GitHub Desktop.
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/
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