Loading document from a GdPicture PDF object

Discussions about DocuVieware integration in GdPicture.NET.
Post Reply
Rajkumar
Posts: 1
Joined: Thu Dec 18, 2014 11:19 am

Loading document from a GdPicture PDF object

Post by Rajkumar » Mon Dec 22, 2014 1:34 pm

i can't able to view pdf in web page. i am using gdpicture.net 11 beta trial version.
the below code i am using

Code: Select all

         
GdPicture11.GdPicturePDF pdf = new GdPicture11.GdPicturePDF();
pdf.LoadFromFile(Global.getDocumentsDirectory() + "sample.pdf", false);
DocuVieware1.LoadFromGdPicturePDF(pdf);
Attachments
Untitled.png

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Loading document from a GdPicture PDF object

Post by Loïc » Mon Dec 22, 2014 1:54 pm

Hello,

Unfortunately it is impossible to help without more information. Your code snippet should work if the provided document path is correct and if you do not subsequently close the document in your server code.

What I can suggest is:
- Check you are using latest DocuVieware version.
- Check that [Global.getDocumentsDirectory() + "sample.pdf"] file exists.
- Check the returned value of the LoadFromFile() method (basically you should consider to always check the returned value of a function).
- Check the returned value of the LoadFromGdPicturePDF() method.

If the problem persists, check you've properly defined a suitable Controller as explained in this tutorials: https://www.gdpicture.com/guides/gdpicture/web ... 0page.html

If the problem still persists please let me know.

With best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest