Print Page | Close Window

iSEDQuickPDF does not clean Document Properties

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=997
Printed Date: 30 Jan 26 at 10:55AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: iSEDQuickPDF does not clean Document Properties
Posted By: AlexYovenko
Subject: iSEDQuickPDF does not clean Document Properties
Date Posted: 16 Dec 08 at 9:56AM
Here is my problem, I wrote a proram that clean the metadata in pdf document such as:
"author", "title", "subject", "keywords", "creator", "producer", "creation date", "last save time"
it`s works fine but when I setup Adobe Acrobat 6.0 Professional and create my own pdf on it, and clean by my program it`s does not clean. Why it can be and what I need to do in this case? This is error of iSEDQuickPDF or some issue of Adobe Acrobat?

I try on 2 PC,the problem appears on both machines.
OS:Windows 2 SP:2
iSEDQuickPDF version: 5.20
IDE:vb6




Replies:
Posted By: Ingo
Date Posted: 16 Dec 08 at 10:23AM
Hi Alex!

First welcome here!
Are you using the returning results of the functions? ...what do they say? ...success or not?
How do you create the pdf? ...any protections?

BTW: Your lib-version is a bit old. Here you can get the latest one:
http://www.quickpdf.org/forum/forum_topics.asp?FID=18

If you want, you can send me the file for testing...
ingo  <dot>  schmoekel  <at>  ewetel  <dot>  net

Cheers, Ingo


Posted By: AlexYovenko
Date Posted: 16 Dec 08 at 10:34AM
I will try new version of dll tomorow, yes I check the result of execute function it true and after this I read value that clean once more and it is clean but when I open cleaned file in Adobe Acrobat the Document properties stay here!

If I delete Adobe Acrobat Proffesionl from PC, it`s work fine.


Posted By: Ingo
Date Posted: 16 Dec 08 at 5:01PM
Hi!
Perhaps Acrobat gets the properties not from the "normal" places inside the pdf? Perhaps it's from rdf-content?
What says the Foxit Reader?
You can send a file to me...
Best regards,
Ingo


Posted By: AlexYovenko
Date Posted: 17 Dec 08 at 6:30AM
Hi Ingo
Foxit Reader shows that all property cleaned.

How I can send you email? I try to use the own mail system on this site but here not suport attachments,can you give me the @mail adres?


Posted By: Ingo
Date Posted: 17 Dec 08 at 8:49AM
Hi!
My email-adress i've inserted few posts higher.
If Foxit says that it's clean then it's clean and Acrobat gets the information from another place ...
Perhaps you can make it "cleaner" if you create a new, empty pdf and insert only the old pages... or something similar to that.
Cheers, Ingo


Posted By: AlexYovenko
Date Posted: 17 Dec 08 at 9:13AM
Sorry I did not seen it before,I about email)

Your advice about new pdf not suitable, you see, I have a program that must clean all PDF property in different
documents.
So iSEDQuickPDF can not do anything with this problem? As I now most of people use like viewer of pdf document Adobe Acrobat.

Will you working on this issue and create new version of dll that will clean the document property in both reader of pdf?


Posted By: Ingo
Date Posted: 18 Dec 08 at 1:31AM
Hi Alex!

QuickPDF can clean the document properties and it does it ;-)
What i've told already is that it seems if Acrobat 6 gets the values from another place in the pdf-document.
Again: You can send me the relevant document to check.

Cheers, Ingo


Posted By: AlexYovenko
Date Posted: 18 Dec 08 at 10:00AM
Hi Ingo

I send you document to email.I understand that Acrobat take the Document from another place that QuickPDF does not check, thats why I asking, can you check it, and do something with this.
Thanks.


Posted By: Ingo
Date Posted: 18 Dec 08 at 2:38PM
Hi Alex!

It's like i've told it already ...
Like any other pdf-library QuickPDF cleans the correct property-fields.
Foxit (for example) only looks in these fields and find nothing.
Acrobat first look in these fields and then (if there's nothing) it looks
into an existing rdf-content and if there's something (in your sample
there're the properties twice) this content will be displayed as properties.
I think there's a solution (like always)... I'll call you later what you can
do. 
Again: Other pdf-libraries can't help you in this case, too.

Cheers, Ingo
 


Posted By: Ingo
Date Posted: 18 Dec 08 at 3:47PM

Hi Alex!

First thing you has to do in this case is like you did it:
Decrypt the pdf after loading.
Clean the property-fields with QuickPDF.
Save the file with a new name unencrypt.
Load the new file content into a stream or so:

filecontent := '';
fs := TFileStream.Create(pdffile,fmOpenRead+fmShareDenyWrite);
try
  SetLength(filecontent,fs.Size);
  fs.Read(PChar(filecontent)^,fs.Size);
finally
  fs.Free;
end;

Now you can search in the string for (in your example):

pdf:Producer='Acrobat Web Capture 6.0'
pdf:Keywords='TestKewyWords'
xml:lang='x-default'>TestSubject</rdf:li>
xml:lang='x-default'>file:///D|/test.txt</rdf:li>

You change all things like this:

pdf:Producer=''
pdf:Keywords=''
xml:lang='x-default'></rdf:li>
xml:lang='x-default'></rdf:li>

At least you should write the string back to harddisk with a new name.
Delete the original file.
Rename the new file with the original name.

One bad point: QuickPDF can't load the pdf-document in a proper way now!
The Foxit Reader and the Acrobat Reader doesn't have any problems with the new file.
You can test this all using Notepad - It works! I've sent you an email with original and new file...

Cheers, Ingo



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