Jouni K. Seppänen <j...@iki.fi> writes: > Marius Jan Klein <mjk...@nyu.edu> writes: > >> I want to edit the metadata of pdf- or png-files when creating one of >> these files. I do not want to use for example Pypdf because then >> Python must read the file first before it can be edited. > > Concerning pdf files, there is no current support for that,
Now there is (in the trunk, revision 7964), via the PdfPages mechanism: from matplotlib.backends.backend_pdf import PdfPages from pylab import * pdf = PdfPages('testing.pdf') plot([3,1,4]) pdf.savefig() d = pdf.infodict() d['Title'] = 'Testing' d['Author'] = u'Jouni K. Sepp\xe4nen' pdf.close() -- Jouni K. Seppänen http://www.iki.fi/jks ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users