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 - iSEDQuickPDF does not clean Document Properties
  FAQ FAQ  Forum Search   Register Register  Login Login

iSEDQuickPDF does not clean Document Properties

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


Joined: 16 Dec 08
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote AlexYovenko Quote  Post ReplyReply Direct Link To This Post Topic: iSEDQuickPDF does not clean Document Properties
    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

Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
AlexYovenko View Drop Down
Beginner
Beginner


Joined: 16 Dec 08
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote AlexYovenko Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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


Edited by Ingo - 16 Dec 08 at 5:03PM
Back to Top
AlexYovenko View Drop Down
Beginner
Beginner


Joined: 16 Dec 08
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote AlexYovenko Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
AlexYovenko View Drop Down
Beginner
Beginner


Joined: 16 Dec 08
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote AlexYovenko Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
AlexYovenko View Drop Down
Beginner
Beginner


Joined: 16 Dec 08
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote AlexYovenko Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
 
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
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