12345678910111213141516171819202122232425 |
- #region Perparation work
- using ComPDFKit.PDFDocument;
- Console.WriteLine("Running Url Load test sample…\r\n");
- bool statue= SDKLicenseHelper.LicenseVerify();
- #endregion
- #region Sample 1: Open File With Url
- if (statue)
- {
- string url = "https://www.compdf.com/webviewer/example/developer_guide_web.pdf";
- CPDFDocument pdfDoc = CPDFDocument.InitWithUrl(url);
- if(pdfDoc != null)
- {
- Console.WriteLine("Load File With Url Done.");
- pdfDoc.Release();
- }
- }
- #endregion
- Console.WriteLine("Done.");
- Console.WriteLine("--------------------");
- Console.ReadLine();
|