how to append custom meta data like to PDF file?

Hello Sir,
Please tell me that how to append custom meta data like info.Add("Subject", Desc) but also not overwrite the previous meta data
i.e  Subject : abc , xyz, def....etc.

string abc = Server.MapPath("~//Files//") + "new" + PAddress;
PdfStamper writer = new PdfStamper(reader, new FileStream(abc, FileMode.Create, FileAccess.Write));
Hashtable info = new Hashtable();
info.Add("Subject", Desc);
writer.MoreInfo = info;

When i used this it overwrite the previous meta data with the new meta data....but i don't want to overwrite the previous one....

Please reply me as soon as possible....

Our Advanced PDF Tools Command Line v3.0 product has this function, please download Advanced PDF Tools Command Line v3.0 from following web page to try,

you can use following command lines to add new information to PDF file,

There are several ways to add new information like follows:
Add new custom Properties to an existing PDF file and overwrite original custom Properties,
pdftools -i "C:\input.pdf" -o "C:\output.pdf" -y "key1=value1,key2=value2"
pdftools -i "C:\input.pdf" -o "C:\output.pdf" -y "/key1(value1) /key2(value2)"
Append new custom Properties  to an existing PDF file,
pdftools -i "C:\input.pdf" -o "C:\output.pdf" -y "+key1=value1,key2=value2"
pdftools -i "C:\input.pdf" -o "C:\output.pdf" -y "+/key1(value1) /key2(value2)"
pdftools -i "C:\input.pdf" -o "C:\output.pdf" -y "Our Company=VeryPDF Company, Support, Our Web URL="
pdftools -i "C:\input.pdf" -o "C:\output.pdf" -y "/Our#20Company(VeryPDF Company) /Support#20Email( /Our#20Web#20URL("
pdftools -i "C:\input.pdf" -o "C:\output.pdf" -y "+/Our#20Company(VeryPDF Company) /Support#20Email( /Our#20Web#20URL("

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify Code   If you cannot see the CheckCode image,please refresh the page again!