GdViewer.GetDocumentLeft(), DocumentTop is negative

Example requests & Code samples for GdPicture Toolkits.
Post Reply
schalla
Posts: 6
Joined: Tue Jan 14, 2020 5:11 pm

GdViewer.GetDocumentLeft(), DocumentTop is negative

Post by schalla » 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);
}

}
Attachments
test.png

Hugo
Posts: 227
Joined: Tue Dec 18, 2018 10:09 am

Re: GdViewer.GetDocumentLeft(), DocumentTop is negative

Post by Hugo » Fri Jan 22, 2021 3:33 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest