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!
Save EbmeddedFile on the drive using PDFViewer |
Post Reply |
Author | |
BMWTester
Beginner Joined: 11 Feb 15 Status: Offline Points: 16 |
Post Options
Thanks(0)
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"); } } |
|
BMWTester
Beginner Joined: 11 Feb 15 Status: Offline Points: 16 |
Post Options
Thanks(0)
|
The code is fine. The test pdf file is malformed.
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store