Changing the title of a pdf file

It appears I can use the PdfFileInfo to change the internal title of a pdf document using something like

PdfFileInfo pdfinfo = new PdfFileInfo(inFileName);

pdfinfo.Title = "New Title";

pdfinfo.SaveNewInfo(inFileName);

However, an error is raised on the save line, stating that the file is being used by another process. Is it running into itself or some other process in my application? In other words, is it ok to use the same file reference when opening and saving with the PdfFileInfo object? thanks

Dan

as a followup question, can the source file be a sharepoint address?

Hello Dan,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

In order to change the Pdf metadata information and save the Pdf file, the output file must be separate than the input Pdf. The issue is occurring as you are providing the same file as input & output.

Regarding your second query, can the source file be a sharepoint address, any valid path can be used.