ReportLab notes: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
mNo edit summary
Brian Wilson (talk | contribs)
mNo edit summary
Line 1: Line 1:
Originally (2005) I was installing reportlab because [[iMap]] used it. Now ESRI uses it.
ReportLab is an open source toolkit for generating PDF files.
ReportLab is an open source toolkit for generating PDF files.
The kit (and more documentation) is available from http://www.reportlab.org/.
The kit (and more documentation) is available from http://www.reportlab.org/.
Line 7: Line 9:
==Installation==
==Installation==


They don't tell you how to install it from sources.
It is now available via pip.
They assume you know something about Python! Tsk. That leaves me out.
Welll... okay... maybe not;
the generic python setup thing works:
 
  % python setup.py build
  % su
  # python setup.py install
 
==Accelerator==
 
There is an extra package to download that is an accelerator
written in 'c'. I have not tried it yet.


There is also mention of a separate package for generating raster bit maps; likewise I have not looked into it yet.
I am going to drive it from ESRI arcpy.mapping so I want it installed under Windows.
Your ESRI installation of python should have pip already, but you can update it.
Use a browser to grab [https://bootstrap.pypa.io/get-pip.py get-pip.py] then run it, "python get-pip.py".


The whole reportlab thing at this point is just filling a checkbox for iMap requirements. I have installed it but will worry about the fine points later.
Then try C:\Python27\ArcGISx6410.4\Scripts\pip install reportlab' thing.
Once it's done you should eb able to run "python" and "import reportlab".

Revision as of 21:44, 21 August 2016

Originally (2005) I was installing reportlab because iMap used it. Now ESRI uses it.

ReportLab is an open source toolkit for generating PDF files. The kit (and more documentation) is available from http://www.reportlab.org/. The commercial products based on ReportLab are at http://www.reportlab.com/.

The documentation comes in a PDF file. I find this amusing.

Installation

It is now available via pip.

I am going to drive it from ESRI arcpy.mapping so I want it installed under Windows. Your ESRI installation of python should have pip already, but you can update it. Use a browser to grab get-pip.py then run it, "python get-pip.py".

Then try C:\Python27\ArcGISx6410.4\Scripts\pip install reportlab' thing. Once it's done you should eb able to run "python" and "import reportlab".