Page 1 of 1

GdViewer.GetDocumentLeft(), DocumentTop is negative

Posted: Fri Jan 22, 2021 7:08 am
by schalla
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);
}

}

Re: GdViewer.GetDocumentLeft(), DocumentTop is negative

Posted: Fri Jan 22, 2021 3:33 pm
by Hugo
Hi Schalla,

Thanks for your question. Would you be able to contact us here please?
https://orpalis.zendesk.com/hc/en-us/requests/new

For your specific issue we'll be needing the input document you are using your code on:
this.GdViewer.GetDocumentLeft();
this.GdViewer.GetDocumentTop();

I'll be waiting for your reply in our private ticket where your document will remain confidential or you can provide it directly here in which case It may take a bit longer to resolve.

Regards,
Hugo