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!
GetAnnotEmbeddedFileToFile creates corrupt file. |
Post Reply |
Author | |
hobnob
Beginner Joined: 24 Jan 12 Location: United Kingdom Status: Offline Points: 17 |
Post Options
Thanks(0)
Posted: 06 Aug 14 at 8:57PM |
I don't know if i'm missing something here but I have a bunch of pdf's with annotation embedded files. i.e. pdf emails with attachments. Using quickpdf 10.16 the GetAnnotEmbeddedFileName works fine but the GetAnnotEmbeddedFileToFile chops the file, it is only outputing about 10% of the file. compared to Acrobat embed extract on the annotation. I have tried a few pdf's with the same result. the GetAnnotEmbeddedFileToString has the same issue. any ideas? int maxPages = QP->PageCount(); std::wstring annot = _L(""); for(int page=0;page<maxPages;page++) { QP->SelectPage(page+1); int end = QP->AnnotationCount(); for(int d=1;d<=end;d++) { annot = QP->GetAnnotEmbeddedFileName(d,0); CString str = annot.c_str(); if(str!="") { CString m; m.Format("str: %s, index: %d",str,d); AfxMessageBox(m); QP->GetAnnotEmbeddedFileToFile(d,0,annot); std::string s; s = QP->GetAnnotEmbeddedFileToString(d,0); int len = s.length(); } } } hobnob.
Edited by hobnob - 06 Aug 14 at 8:58PM |
|
hobnob
Beginner Joined: 24 Jan 12 Location: United Kingdom Status: Offline Points: 17 |
Post Options
Thanks(0)
|
version 10.14 works fine.
problem is in latest version 10.16
|
|
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