Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Save EbmeddedFile on the drive using PDFViewer
  FAQ FAQ  Forum Search   Register Register  Login Login

Save EbmeddedFile on the drive using PDFViewer

 Post Reply Post Reply
Author
Message
BMWTester View Drop Down
Beginner
Beginner


Joined: 11 Feb 15
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote BMWTester Quote  Post ReplyReply Direct Link To This Post Topic: Save EbmeddedFile on the drive using PDFViewer
    Posted: 19 Feb 15 at 9:59PM
Hi

I used PDFViewer on my C# project in VS2008. I would like to build the attachment panel.  On the below code I can get the correct number of attachment file on pdf.  I  used axDPVActiveX1.DQPLGetEmbeddedFileContentToFile  method for saving the attachment on other location. The file I saved cannot open on Adobe Reader. It indicated that the file is either not a support type or because the file has been damaged.   Would someone tell me what is wrong with my code. Thanks in advance.

 for (int i = 1; i <= axDPVActiveX1.DQPLEmbeddedFileCount(); i++)
            {

                axDPVActiveX1.DQPLSelectPage(i);

                string str = "Index: " + i.ToString() + Environment.NewLine;
                str+= "File nmae: " + axDPVActiveX1.DQPLGetEmbeddedFileStrProperty(i, 1) + Environment.NewLine;
                str += "MIME type: " + axDPVActiveX1.DQPLGetEmbeddedFileStrProperty(i, 2) + Environment.NewLine;
                str += "Creation date: " + axDPVActiveX1.DQPLGetEmbeddedFileStrProperty(i, 3) + Environment.NewLine;
                str += "Modification date: " + axDPVActiveX1.DQPLGetEmbeddedFileStrProperty(i, 4) + Environment.NewLine;
                str += "Title: " + axDPVActiveX1.DQPLGetEmbeddedFileStrProperty(i, 5) + Environment.NewLine;
                str += "Description: " + axDPVActiveX1.DQPLGetEmbeddedFileStrProperty(i, 7) + Environment.NewLine;
                str += "ID: " + axDPVActiveX1.DQPLGetEmbeddedFileID(i) + Environment.NewLine;             

                MessageBox.Show(str);
                if (axDPVActiveX1.DQPLGetEmbeddedFileStrProperty(i, 5).Contains(".pdf"))
                {
                    axDPVActiveX1.DQPLGetEmbeddedFileContentToFile(i, @"C:\Users\UserName\Desktop\Testing folder\test_" + i.ToString() + ".pdf");
                }

               

            }
Back to Top
BMWTester View Drop Down
Beginner
Beginner


Joined: 11 Feb 15
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote BMWTester Quote  Post ReplyReply Direct Link To This Post Posted: 27 Feb 15 at 6:20PM
The code is fine. The test pdf file is malformed.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 27 Feb 15 at 7:12PM
Hi,

you've posted this a week ago and it seems to me that there aren't similar probs for other users.
So why not post this issue on the official support page from Debenu?

Cheers and have a nice weekend,
Ingo

Cheers,
Ingo

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store