Thanks for your help concerning the pdf files! It was exactly what I was 
looking for. Is there anything similar for png-files?



> Marius Jan Klein <mjk...@ny...> 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.



>Jouni K. Seppänen <j...@ik...> writes:
>
>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()
>

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to