@@ -148,8 +148,8 @@ private void AddAnnotationToPdf(AnnotObject annotObject, PdfDocument pdfDocument
148
148
if ( annotObject . GetAttributeValue ( XfdfConstants . STATE_MODEL ) != null ) {
149
149
pdfTextAnnotation . SetStateModel ( new PdfString ( annotObject . GetAttributeValue ( XfdfConstants . STATE_MODEL ) ) ) ;
150
150
}
151
- pdfDocument . GetPage ( Convert . ToInt32 ( annotObject . GetAttributeValue ( XfdfConstants . PAGE ) ) ) . AddAnnotation ( pdfTextAnnotation
152
- ) ;
151
+ pdfDocument . GetPage ( Convert . ToInt32 ( annotObject . GetAttributeValue ( XfdfConstants . PAGE ) , System . Globalization . CultureInfo . InvariantCulture
152
+ ) ) . AddAnnotation ( pdfTextAnnotation ) ;
153
153
break ;
154
154
}
155
155
@@ -159,8 +159,8 @@ private void AddAnnotationToPdf(AnnotObject annotObject, PdfDocument pdfDocument
159
159
( annotObject . GetAttributeValue ( XfdfConstants . COORDS ) ) ) ;
160
160
AddCommonAnnotationAttributes ( pdfHighLightAnnotation , annotObject ) ;
161
161
AddMarkupAnnotationAttributes ( pdfHighLightAnnotation , annotObject ) ;
162
- pdfDocument . GetPage ( Convert . ToInt32 ( annotObject . GetAttribute ( XfdfConstants . PAGE ) . GetValue ( ) ) ) . AddAnnotation
163
- ( pdfHighLightAnnotation ) ;
162
+ pdfDocument . GetPage ( Convert . ToInt32 ( annotObject . GetAttribute ( XfdfConstants . PAGE ) . GetValue ( ) , System . Globalization . CultureInfo . InvariantCulture
163
+ ) ) . AddAnnotation ( pdfHighLightAnnotation ) ;
164
164
break ;
165
165
}
166
166
@@ -170,8 +170,8 @@ private void AddAnnotationToPdf(AnnotObject annotObject, PdfDocument pdfDocument
170
170
( annotObject . GetAttributeValue ( XfdfConstants . COORDS ) ) ) ;
171
171
AddCommonAnnotationAttributes ( pdfUnderlineAnnotation , annotObject ) ;
172
172
AddMarkupAnnotationAttributes ( pdfUnderlineAnnotation , annotObject ) ;
173
- pdfDocument . GetPage ( Convert . ToInt32 ( annotObject . GetAttribute ( XfdfConstants . PAGE ) . GetValue ( ) ) ) . AddAnnotation
174
- ( pdfUnderlineAnnotation ) ;
173
+ pdfDocument . GetPage ( Convert . ToInt32 ( annotObject . GetAttribute ( XfdfConstants . PAGE ) . GetValue ( ) , System . Globalization . CultureInfo . InvariantCulture
174
+ ) ) . AddAnnotation ( pdfUnderlineAnnotation ) ;
175
175
break ;
176
176
}
177
177
@@ -181,8 +181,8 @@ private void AddAnnotationToPdf(AnnotObject annotObject, PdfDocument pdfDocument
181
181
( annotObject . GetAttributeValue ( XfdfConstants . COORDS ) ) ) ;
182
182
AddCommonAnnotationAttributes ( pdfStrikeoutAnnotation , annotObject ) ;
183
183
AddMarkupAnnotationAttributes ( pdfStrikeoutAnnotation , annotObject ) ;
184
- pdfDocument . GetPage ( Convert . ToInt32 ( annotObject . GetAttribute ( XfdfConstants . PAGE ) . GetValue ( ) ) ) . AddAnnotation
185
- ( pdfStrikeoutAnnotation ) ;
184
+ pdfDocument . GetPage ( Convert . ToInt32 ( annotObject . GetAttribute ( XfdfConstants . PAGE ) . GetValue ( ) , System . Globalization . CultureInfo . InvariantCulture
185
+ ) ) . AddAnnotation ( pdfStrikeoutAnnotation ) ;
186
186
break ;
187
187
}
188
188
@@ -192,8 +192,8 @@ private void AddAnnotationToPdf(AnnotObject annotObject, PdfDocument pdfDocument
192
192
( annotObject . GetAttributeValue ( XfdfConstants . COORDS ) ) ) ;
193
193
AddCommonAnnotationAttributes ( pdfSquigglyAnnotation , annotObject ) ;
194
194
AddMarkupAnnotationAttributes ( pdfSquigglyAnnotation , annotObject ) ;
195
- pdfDocument . GetPage ( Convert . ToInt32 ( annotObject . GetAttribute ( XfdfConstants . PAGE ) . GetValue ( ) ) ) . AddAnnotation
196
- ( pdfSquigglyAnnotation ) ;
195
+ pdfDocument . GetPage ( Convert . ToInt32 ( annotObject . GetAttribute ( XfdfConstants . PAGE ) . GetValue ( ) , System . Globalization . CultureInfo . InvariantCulture
196
+ ) ) . AddAnnotation ( pdfSquigglyAnnotation ) ;
197
197
break ;
198
198
}
199
199
@@ -210,8 +210,8 @@ private void AddAnnotationToPdf(AnnotObject annotObject, PdfDocument pdfDocument
210
210
pdfCircleAnnotation . SetRectangleDifferences ( XfdfObjectUtils . ConvertFringeFromString ( annotObject . GetAttributeValue
211
211
( XfdfConstants . FRINGE ) ) ) ;
212
212
}
213
- pdfDocument . GetPage ( Convert . ToInt32 ( annotObject . GetAttribute ( XfdfConstants . PAGE ) . GetValue ( ) ) ) . AddAnnotation
214
- ( pdfCircleAnnotation ) ;
213
+ pdfDocument . GetPage ( Convert . ToInt32 ( annotObject . GetAttribute ( XfdfConstants . PAGE ) . GetValue ( ) , System . Globalization . CultureInfo . InvariantCulture
214
+ ) ) . AddAnnotation ( pdfCircleAnnotation ) ;
215
215
break ;
216
216
}
217
217
@@ -224,8 +224,8 @@ private void AddAnnotationToPdf(AnnotObject annotObject, PdfDocument pdfDocument
224
224
pdfSquareAnnotation . SetRectangleDifferences ( XfdfObjectUtils . ConvertFringeFromString ( annotObject . GetAttributeValue
225
225
( XfdfConstants . FRINGE ) ) ) ;
226
226
}
227
- pdfDocument . GetPage ( Convert . ToInt32 ( annotObject . GetAttribute ( XfdfConstants . PAGE ) . GetValue ( ) ) ) . AddAnnotation
228
- ( pdfSquareAnnotation ) ;
227
+ pdfDocument . GetPage ( Convert . ToInt32 ( annotObject . GetAttribute ( XfdfConstants . PAGE ) . GetValue ( ) , System . Globalization . CultureInfo . InvariantCulture
228
+ ) ) . AddAnnotation ( pdfSquareAnnotation ) ;
229
229
break ;
230
230
}
231
231
@@ -236,8 +236,8 @@ private void AddAnnotationToPdf(AnnotObject annotObject, PdfDocument pdfDocument
236
236
PdfPolyGeomAnnotation polygonAnnotation = PdfPolyGeomAnnotation . CreatePolygon ( rect , vertices ) ;
237
237
AddCommonAnnotationAttributes ( polygonAnnotation , annotObject ) ;
238
238
AddMarkupAnnotationAttributes ( polygonAnnotation , annotObject ) ;
239
- pdfDocument . GetPage ( Convert . ToInt32 ( annotObject . GetAttribute ( XfdfConstants . PAGE ) . GetValue ( ) ) ) . AddAnnotation
240
- ( polygonAnnotation ) ;
239
+ pdfDocument . GetPage ( Convert . ToInt32 ( annotObject . GetAttribute ( XfdfConstants . PAGE ) . GetValue ( ) , System . Globalization . CultureInfo . InvariantCulture
240
+ ) ) . AddAnnotation ( polygonAnnotation ) ;
241
241
break ;
242
242
}
243
243
@@ -249,23 +249,23 @@ private void AddAnnotationToPdf(AnnotObject annotObject, PdfDocument pdfDocument
249
249
) ;
250
250
AddCommonAnnotationAttributes ( polylineAnnotation , annotObject ) ;
251
251
AddMarkupAnnotationAttributes ( polylineAnnotation , annotObject ) ;
252
- pdfDocument . GetPage ( Convert . ToInt32 ( annotObject . GetAttribute ( XfdfConstants . PAGE ) . GetValue ( ) ) ) . AddAnnotation
253
- ( polylineAnnotation ) ;
252
+ pdfDocument . GetPage ( Convert . ToInt32 ( annotObject . GetAttribute ( XfdfConstants . PAGE ) . GetValue ( ) , System . Globalization . CultureInfo . InvariantCulture
253
+ ) ) . AddAnnotation ( polylineAnnotation ) ;
254
254
break ;
255
255
}
256
256
257
257
case XfdfConstants . STAMP : {
258
- pdfDocument . GetPage ( Convert . ToInt32 ( annotObject . GetAttribute ( XfdfConstants . PAGE ) . GetValue ( ) ) ) . AddAnnotation
259
- ( new PdfStampAnnotation ( XfdfObjectUtils . ConvertRectFromString ( annotObject . GetAttributeValue ( XfdfConstants
260
- . RECT ) ) ) ) ;
258
+ pdfDocument . GetPage ( Convert . ToInt32 ( annotObject . GetAttribute ( XfdfConstants . PAGE ) . GetValue ( ) , System . Globalization . CultureInfo . InvariantCulture
259
+ ) ) . AddAnnotation ( new PdfStampAnnotation ( XfdfObjectUtils . ConvertRectFromString ( annotObject . GetAttributeValue
260
+ ( XfdfConstants . RECT ) ) ) ) ;
261
261
break ;
262
262
}
263
263
264
264
case XfdfConstants . FREETEXT : {
265
265
//XfdfConstants.INK
266
- pdfDocument . GetPage ( Convert . ToInt32 ( annotObject . GetAttribute ( XfdfConstants . PAGE ) . GetValue ( ) ) ) . AddAnnotation
267
- ( new PdfFreeTextAnnotation ( XfdfObjectUtils . ConvertRectFromString ( annotObject . GetAttributeValue ( XfdfConstants
268
- . RECT ) ) , annotObject . GetContents ( ) ) ) ;
266
+ pdfDocument . GetPage ( Convert . ToInt32 ( annotObject . GetAttribute ( XfdfConstants . PAGE ) . GetValue ( ) , System . Globalization . CultureInfo . InvariantCulture
267
+ ) ) . AddAnnotation ( new PdfFreeTextAnnotation ( XfdfObjectUtils . ConvertRectFromString ( annotObject . GetAttributeValue
268
+ ( XfdfConstants . RECT ) ) , annotObject . GetContents ( ) ) ) ;
269
269
break ;
270
270
}
271
271
0 commit comments