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
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
Originally (2005) I was installing reportlab because Adam Ryan's "iMap" project 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/.
The commercial products based on ReportLab are at http://www.reportlab.com/.
The commercial products based on ReportLab are at http://www.reportlab.com/.


The documentation comes in a PDF file. I find this amusing.
The documentation comes in PDF files. I find this amusing.
See http://www.reportlab.com/documentation/
 
== What it does ==


==Installation==
You can generate output to a PDF using drawing primitives and flow layouts.


They don't tell you how to install it from sources.
Does not seem too exciting to me right now.
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
==Installation==
  % su
  # python setup.py install


==Accelerator==
The current version is in bitbucket.org, not sourceforge.


There is an extra package to download that is an accelerator
It is now available via pip.
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".

Latest revision as of 03:46, 22 August 2016

Originally (2005) I was installing reportlab because Adam Ryan's "iMap" project 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 PDF files. I find this amusing. See http://www.reportlab.com/documentation/

What it does

You can generate output to a PDF using drawing primitives and flow layouts.

Does not seem too exciting to me right now.

Installation

The current version is in bitbucket.org, not sourceforge.

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".