Skip to content

Commit

Permalink
203156 Resolved given feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
sameerkhan001 committed Dec 24, 2024
1 parent afb41fe commit e5755a6
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 2 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Syncfusion.HtmlConverter;
using Syncfusion.Pdf;
using System.Runtime.InteropServices;

// Initialize the HTML to PDF converter.
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
Expand Down

0 comments on commit e5755a6

Please sign in to comment.