GdViewer.GetDocumentLeft(), DocumentTop is negative
Posted: Fri Jan 22, 2021 7:08 am
Hello,
We are using the latest and greatest GdPicture version
This is our code. After executing this.GdViewer.DisplayFromGdPicturePDF(this.GdPicturePDF), I am still seeing DocumentLeft and DocumentTop negative. What should I do? Any suggestions?
this.GdViewer.GetDocumentLeft();
-352
this.GdViewer.GetDocumentTop();
-472
if (this.DocumentFormat == GdPicture14.DocumentFormat.DocumentFormatPDF)
{
if (this.GdPicturePDF.LoadFromStream(this.DocumentStream) == GdPictureStatus.OK)
{
try
{
this.GdPicturePDF.FlattenFormFields();
}
// ReSharper disable EmptyGeneralCatchClause
catch (Exception) {} // Suppress error and continue
// ReSharper restore EmptyGeneralCatchClause
this.GdViewer.DisplayFromGdPicturePDF(this.GdPicturePDF);
}
}
We are using the latest and greatest GdPicture version
This is our code. After executing this.GdViewer.DisplayFromGdPicturePDF(this.GdPicturePDF), I am still seeing DocumentLeft and DocumentTop negative. What should I do? Any suggestions?
this.GdViewer.GetDocumentLeft();
-352
this.GdViewer.GetDocumentTop();
-472
if (this.DocumentFormat == GdPicture14.DocumentFormat.DocumentFormatPDF)
{
if (this.GdPicturePDF.LoadFromStream(this.DocumentStream) == GdPictureStatus.OK)
{
try
{
this.GdPicturePDF.FlattenFormFields();
}
// ReSharper disable EmptyGeneralCatchClause
catch (Exception) {} // Suppress error and continue
// ReSharper restore EmptyGeneralCatchClause
this.GdViewer.DisplayFromGdPicturePDF(this.GdPicturePDF);
}
}