Removing attachement files from a PDF


hi all,

 

i want remove attachement(s)(it may word doc, xls file(s)) form pdf file through acrobat javascript.

 

next, want remove meta data text (pdf producer name).

 

i have searched in web, not found relevent link.

 

 

thanks,

christy

both of these explained in acrobat sdk javascript reference, should read carefully.

 

for attachments use  this.removedataobject("nameofattachment"). you can obtain list of names enumerating dataobjects property, e.g.

 

var d = this.dataobjects;

for (var = 0; < d.length; i++)

console.println("data object[" + + "]=" + d[i].name);

 

to access xmp data use this.metadata, should never have reason change pdf:producer tag. has there , it's important it's accurate. change xmp tree have reconstruct schema in xml , write itself, properties aren't directly addressable.



More discussions in JavaScript


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support