Print Page | Close Window

GetAnnotEmbeddedFileToFile creates corrupt file.

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2949
Printed Date: 29 Mar 24 at 12:33AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: GetAnnotEmbeddedFileToFile creates corrupt file.
Posted By: hobnob
Subject: GetAnnotEmbeddedFileToFile creates corrupt file.
Date 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.



Replies:
Posted By: hobnob
Date Posted: 07 Aug 14 at 11:07AM
version 10.14 works fine.

problem is in latest version 10.16



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk