Python script to export content to a PDF file using ReportLab. org
Script python pour exporter le contenu vers un fichier PDF en utilisant ReportLab. org
Complex PDFs If you're creating a complex PDF document with ReportLab, consider using the io library as a temporary holding place for your PDF file.
Si vous créez un document PDF complexe avec ReportLab, envisagez l'utilisation de la bibliothèque io comme espace de stockage temporaire du fichier PDF.
If you are running the Windows binary distribution, you need to unzip ReportLab in the "web2py/" folder.
Si vous exécutez la distribution binaire Windows, vous avez besoin de décompresser ReportLab dans le dossier "web2py/".
The ReportLab library is available on PyPI.
La bibliothèque ReportLab est disponible sur PyPI.
This is made possible by the excellent, open-source ReportLab Python PDF library.
C'est possible grâce à l'excellente bibliothèque Python libre ReportLab.
Notice that there isn't a lot in these examples that's PDF-specific - just the bits using reportlab.
Vous constaterez que ces exemples ne contiennent pas beaucoup de code spécifique au format PDF, uniquement les parties utilisant reportlab.
For more information about the ReportLab API, refer to the ReportLab documentation.
Pour plus d'informations sur l'API ReportLab, référez vous à la documentation ReportLab.
ReportLab PDF web2py can also generate PDF documents, with an additional library called "ReportLab"[ReportLab].
ReportLab PDF web2py peut aussi générer des documents PDF, avec une librairie additionnelle appelée "ReportLab"[ReportLab].
For example, Django was to generate customized, printer-friendly NCAA tournament brackets, as PDF files, for people participating in a March Madness contest. Install ReportLab
Par exemple, Django était utilisé chez pour générer des tableaux de tournois NCAA personnalisés et prêts pour l'impression, sous forme de fichiers PDF, pour les personnes participant au concours « March Madness ».
The key to generating PDFs dynamically with Django is that the ReportLab API acts on file-like objects, and Django's FileResponse objects accept file-like objects. Here's a "Hello World" example
L'élément clé dans la génération dynamique de PDF avec Django est que l'API de ReportLab agit sur des objets de type fichier, et les objets HttpResponse de Django sont justement des objets de type fichier.
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.