Skip to content

Commit 332a4fa

Browse files
committed
997972-ug: Resolved the UG failures in PDF library
1 parent 32cc06c commit 332a4fa

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

Document-Processing/PDF/PDF-Library/NET/Working-with-Annotations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5742,7 +5742,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
57425742

57435743
The Essential<sup>&reg;</sup> PDF supports removing comments and reviewing status from the PDF annotation.
57445744

5745-
The following code example explains how to remove comments using [RemoveAt](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Parsing.PdfLoadedPageCollection.html#Syncfusion_Pdf_Parsing_PdfLoadedPageCollection_RemoveAt_System_Int32_) method from the existing PDF annotation.
5745+
The following code example explains how to remove comments using [RemoveAt](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Parsing.PdfLoadedPopupAnnotationCollection.html#Syncfusion_Pdf_Parsing_PdfLoadedPopupAnnotationCollection_RemoveAt_System_Int32_) method from the existing PDF annotation.
57465746

57475747
{% tabs %}
57485748

@@ -5766,7 +5766,7 @@ PdfLoadedPopupAnnotationCollection commentsCollection = loadedRectangleAnnotatio
57665766
commentsCollection.RemoveAt(0);
57675767

57685768
//Save the document
5769-
lDoc.Save("Output.pdf");
5769+
ldoc.Save("Output.pdf");
57705770
//Closes the document
57715771
ldoc.Close(true);
57725772
{% endhighlight %}

Document-Processing/PDF/PDF-Library/NET/Working-with-Images.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,9 +1021,9 @@ using Syncfusion.Pdf;
10211021
using Syncfusion.Pdf.Graphics;
10221022

10231023
//Create a new PDF document
1024-
PdfDocument doc = new PdfDocument();
1024+
PdfDocument document = new PdfDocument();
10251025
//Set page margins
1026-
doc.PageSettings.Margins.All = 0;
1026+
document.PageSettings.Margins.All = 0;
10271027

10281028
//Load the multi frame TIFF image from the disk
10291029
FileStream imageStream = new FileStream("image.tiff", FileMode.Open, FileAccess.Read);
@@ -1033,14 +1033,14 @@ int frameCount = tiffImage.FrameCount;
10331033
//Access each frame and draw into the page
10341034
for (int i = 0; i < frameCount; i++)
10351035
{
1036-
PdfPage page = doc.Pages.Add();
1036+
PdfPage page = document.Pages.Add();
10371037
PdfGraphics graphics = page.Graphics;
10381038
tiffImage.ActiveFrame = i;
10391039
graphics.DrawImage(tiffImage, 0, 0, page.GetClientSize().Width, page.GetClientSize().Height);
10401040
}
10411041
//Save and close the document
1042-
pdfDocument.Save("Sample.pdf");
1043-
pdfDocument.Close(true);
1042+
document.Save("Sample.pdf");
1043+
document.Close(true);
10441044

10451045
{% endhighlight %}
10461046

@@ -1050,9 +1050,9 @@ using Syncfusion.Pdf;
10501050
using Syncfusion.Pdf.Graphics;
10511051

10521052
//Create a PDF document
1053-
PdfDocument pdfDocument = new PdfDocument();
1053+
PdfDocument document = new PdfDocument();
10541054
//Set page margins
1055-
pdfDocument.PageSettings.Margins.All = 0;
1055+
document.PageSettings.Margins.All = 0;
10561056

10571057
//Load multi frame TIFF image
10581058
PdfBitmap tiffImage = new PdfBitmap("image.tiff");
@@ -1061,15 +1061,15 @@ int frameCount = tiffImage.FrameCount;
10611061
//Access each frame and draw into the page
10621062
for (int i = 0; i < frameCount; i++)
10631063
{
1064-
PdfPage page = pdfDocument.Pages.Add();
1064+
PdfPage page = document.Pages.Add();
10651065
PdfGraphics graphics = page.Graphics;
10661066
tiffImage.ActiveFrame = i;
10671067
graphics.DrawImage(tiffImage, 0, 0, page.GetClientSize().Width, page.GetClientSize().Height);
10681068
}
10691069

10701070
//Save and close the document
1071-
pdfDocument.Save("Sample.pdf");
1072-
pdfDocument.Close(true);
1071+
document.Save("Sample.pdf");
1072+
document.Close(true);
10731073

10741074
{% endhighlight %}
10751075

@@ -1079,25 +1079,25 @@ Imports Syncfusion.Pdf
10791079
Imports Syncfusion.Pdf.Graphics
10801080

10811081
'Create a PDF document
1082-
Dim pdfDocument As New PdfDocument()
1082+
Dim document As New PdfDocument()
10831083
'Set page margins
1084-
pdfDocument.PageSettings.Margins.All = 0
1084+
document.PageSettings.Margins.All = 0
10851085

10861086
'Load multi frame TIFF image
10871087
Dim tiffImage As New PdfBitmap("image.tiff")
10881088
'Get the frame count
10891089
Dim frameCount As Integer = tiffImage.FrameCount
10901090
'Access each frame and draw into the page
10911091
For i As Integer = 0 To frameCount - 1
1092-
Dim page As PdfPage = pdfDocument.Pages.Add()
1092+
Dim page As PdfPage = document.Pages.Add()
10931093
Dim graphics As PdfGraphics = page.Graphics
10941094
tiffImage.ActiveFrame = i
10951095
graphics.DrawImage(tiffImage, 0, 0, page.GetClientSize().Width, page.GetClientSize().Height)
10961096
Next
10971097

10981098
'Save and close the document
1099-
pdfDocument.Save("Sample.pdf")
1100-
pdfDocument.Close(True)
1099+
document.Save("Sample.pdf")
1100+
document.Close(True)
11011101

11021102
{% endhighlight %}
11031103

0 commit comments

Comments
 (0)