diff --git a/Annotation/Get-annotation-creation-date-from-PDF/.NET/Get-annotation-creation-date-from-pdf/Data/Input.pdf b/Annotation/Get-annotation-creation-date-from-PDF/.NET/Get-annotation-creation-date-from-pdf/Data/Input.pdf index 2ab406b8..6312b497 100644 Binary files a/Annotation/Get-annotation-creation-date-from-PDF/.NET/Get-annotation-creation-date-from-pdf/Data/Input.pdf and b/Annotation/Get-annotation-creation-date-from-PDF/.NET/Get-annotation-creation-date-from-pdf/Data/Input.pdf differ diff --git a/Annotation/Get-annotation-creation-date-from-PDF/.NET/Get-annotation-creation-date-from-pdf/Program.cs b/Annotation/Get-annotation-creation-date-from-PDF/.NET/Get-annotation-creation-date-from-pdf/Program.cs index 62a789f1..cb4965b8 100644 --- a/Annotation/Get-annotation-creation-date-from-PDF/.NET/Get-annotation-creation-date-from-pdf/Program.cs +++ b/Annotation/Get-annotation-creation-date-from-PDF/.NET/Get-annotation-creation-date-from-pdf/Program.cs @@ -12,7 +12,7 @@ PdfLoadedPage firstPage = document.Pages[0] as PdfLoadedPage; //Get the annotation on that page - PdfLoadedAnnotation annotation = firstPage.Annotations[1] as PdfLoadedAnnotation; + PdfLoadedAnnotation annotation = firstPage.Annotations[0] as PdfLoadedAnnotation; //Get the annotation creation date. DateTime creationDate = annotation.CreationDate; diff --git a/Annotation/Get-annotation-type-from-pdf/.NET/Get-annotation-type-from-pdf/Data/Input.pdf b/Annotation/Get-annotation-type-from-pdf/.NET/Get-annotation-type-from-pdf/Data/Input.pdf index 50d4c34b..48bb0cd1 100644 Binary files a/Annotation/Get-annotation-type-from-pdf/.NET/Get-annotation-type-from-pdf/Data/Input.pdf and b/Annotation/Get-annotation-type-from-pdf/.NET/Get-annotation-type-from-pdf/Data/Input.pdf differ diff --git a/HTML to PDF/Blink/Convert-website-URL-to-PDF-document/.NET/Convert-website-URL-to-PDF-document/Program.cs b/HTML to PDF/Blink/Convert-website-URL-to-PDF-document/.NET/Convert-website-URL-to-PDF-document/Program.cs index 857781b6..b890d18b 100644 --- a/HTML to PDF/Blink/Convert-website-URL-to-PDF-document/.NET/Convert-website-URL-to-PDF-document/Program.cs +++ b/HTML to PDF/Blink/Convert-website-URL-to-PDF-document/.NET/Convert-website-URL-to-PDF-document/Program.cs @@ -13,11 +13,12 @@ //Set command line arguments to run without the sandbox. blinkConverterSettings.CommandLineArguments.Add("--no-sandbox"); blinkConverterSettings.CommandLineArguments.Add("--disable-setuid-sandbox"); + blinkConverterSettings.AdditionalDelay = 0; } //Assign Blink converter settings to HTML converter. htmlConverter.ConverterSettings = blinkConverterSettings; //Convert URL to PDF document. -PdfDocument document = htmlConverter.Convert("https://www.syncfusion.com"); +PdfDocument document = htmlConverter.Convert("https://www.google.com"); //Create file stream. using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite)) { diff --git a/HTML to PDF/Blink/HTML-to-PDF-Enable-Autoscaling/.NET/HTML-to-PDF-Enable-Autoscaling/Program.cs b/HTML to PDF/Blink/HTML-to-PDF-Enable-Autoscaling/.NET/HTML-to-PDF-Enable-Autoscaling/Program.cs index cd4eb597..3fb94a23 100644 --- a/HTML to PDF/Blink/HTML-to-PDF-Enable-Autoscaling/.NET/HTML-to-PDF-Enable-Autoscaling/Program.cs +++ b/HTML to PDF/Blink/HTML-to-PDF-Enable-Autoscaling/.NET/HTML-to-PDF-Enable-Autoscaling/Program.cs @@ -1,5 +1,6 @@ using Syncfusion.HtmlConverter; using Syncfusion.Pdf; +using System.Runtime.InteropServices; // Initialize the HTML to PDF converter. HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();