Hi all,

I’m trying to add a title to my pdf document.  I saw in the archives that you can use PdfStamper for this purpose, but I know the title before I first open the document, so I’d like to add it during the document creation process, rather than using PdfStamper to fix it later.  Is this possible?  I’ve been playing around with the Meta class and adding a title element to my unopened document, but this doesn’t seem to work (no error is thrown, but no title appears).  Is there a way to add the title while you’re working with the PdfDocument?  I don’t think I can use the PdfStamper here, because I don’t know the filename the writer is writing to.  I just have a generic output stream.

 

 

Thanks,

Chris

 

 

 

 

 

 

 

 

 

 

Reply via email to