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 - GetAnnotEmbeddedFileToFile creates corrupt file.
  FAQ FAQ  Forum Search   Register Register  Login Login

GetAnnotEmbeddedFileToFile creates corrupt file.

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


Joined: 24 Jan 12
Location: United Kingdom
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote hobnob Quote  Post ReplyReply Direct Link To This Post Topic: GetAnnotEmbeddedFileToFile creates corrupt file.
    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
Back to Top
hobnob View Drop Down
Beginner
Beginner


Joined: 24 Jan 12
Location: United Kingdom
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote hobnob Quote  Post ReplyReply Direct Link To This Post Posted: 07 Aug 14 at 11:07AM
version 10.14 works fine.

problem is in latest version 10.16
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