-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff9269c
commit afb41fe
Showing
10 changed files
with
61 additions
and
96 deletions.
There are no files selected for viewing
This file contains 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
Binary file renamed
BIN
+98.7 KB
...ion-date-from-existing-pdf/Data/Input.pdf → ...ion-creation-date-from-pdf/Data/Input.pdf
Binary file not shown.
This file contains 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
22 changes: 22 additions & 0 deletions
22
...t-annotation-creation-date-from-PDF/.NET/Get-annotation-creation-date-from-pdf/Program.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using Syncfusion.Pdf.Interactive; | ||
using Syncfusion.Pdf.Parsing; | ||
using Syncfusion.Pdf; | ||
|
||
// Load the PDF document | ||
using (FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/Input.pdf"), FileMode.Open, FileAccess.Read)) | ||
{ | ||
using (PdfLoadedDocument document = new PdfLoadedDocument(inputStream)) | ||
{ | ||
|
||
//Get the first page from the document | ||
PdfLoadedPage firstPage = document.Pages[0] as PdfLoadedPage; | ||
|
||
//Get the annotation on that page | ||
PdfLoadedAnnotation annotation = firstPage.Annotations[1] as PdfLoadedAnnotation; | ||
|
||
//Get the annotation creation date. | ||
DateTime creationDate = annotation.CreationDate; | ||
|
||
Console.WriteLine("Annotation Creation Date: " + creationDate); | ||
} | ||
} |
This file contains 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
File renamed without changes.
This file contains 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
23 changes: 23 additions & 0 deletions
23
Annotation/Get-annotation-type-from-pdf/.NET/Get-annotation-type-from-pdf/Program.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Syncfusion.Pdf.Interactive; | ||
using Syncfusion.Pdf.Parsing; | ||
using Syncfusion.Pdf; | ||
|
||
// Load the PDF document using a file stream | ||
using (FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/Input.pdf"), FileMode.Open, FileAccess.Read)) | ||
{ | ||
using (PdfLoadedDocument document = new PdfLoadedDocument(inputStream)) | ||
{ | ||
//Get the pages of the PDF file | ||
for (int i = 0; i < document.PageCount; i++) | ||
{ | ||
Console.WriteLine("Page Number: " + i); | ||
PdfLoadedPage page = document.Pages[i] as PdfLoadedPage; | ||
|
||
//Get the annotation type. | ||
foreach (PdfLoadedAnnotation annotation in page.Annotations) | ||
{ | ||
Console.WriteLine("Annotation Type: " + annotation.Type.ToString()); | ||
} | ||
} | ||
} | ||
} |
35 changes: 0 additions & 35 deletions
35
...date-from-existing-pdf/.NET/Getting-annotation-creation-date-from-existing-pdf/Program.cs
This file was deleted.
Oops, something went wrong.
57 changes: 0 additions & 57 deletions
57
...notation-type-from-existing-PDF/.NET/Getting-annotation-type-from-existing-PDF/Program.cs
This file was deleted.
Oops, something went wrong.