PHPnews.io

Overview for 'python'


Make Thumbnails of PDF Pages with ImageMagick

Written by Lorna Jane / Original link on Feb. 16, 2020

All my talk slides are PDF - I use rst2pdf to transform text-based ReStructuredText content into presentation slides. With all these PDFs hanging around, it can be very handy to have them as thumbnails. I use the images both in the printable speaker notes that I produce (and I should blog that too …


Grab Annotations from a PDF with pypdf2

Written by Lorna Jane / Original link on Jan. 15, 2020

If you've noticed a lot of PDF content around here lately, that's because I work with PDF a lot! Most of all, all my slide decks are in PDF and in the last year or so I've started using speaker notes in my presentations. Yes, this means that if you saw me speak in the first ten years of my speaking …


Creating virtual environments with Pyenv

Written by Rob Allen / Original link on Jul. 17, 2019

rst2pdf is a Python 2 application that we're making compatible with Python 3. When developing Python applications, I've found it useful to be able to switch python versions easily and also set up clean environments to work in. To do this, I currently use pyenv.This is how I set it up:Install PyenvO…


Step debugging sphinx-build in PyCharm

Written by Rob Allen / Original link on Jun. 26, 2019

I've been trying to solve an issue with the rst2pdf Sphinx extension which allows you to use rst2pdf to create a PDF of your Sphinx documentation rather than using Sphinx's default pdfTeX builder.In order to understand what was happening, I really wanted to inspect variable at certain stages of the …


Working with zip files in Python

Written by code-diesel / Original link on Aug. 15, 2018

Since I started working with computers, my favorite file format was ‘zip’, popularized by the Windows PKZIP program. The idea of compressing data into shorter versions of themselves was a fascinating idea.Then, I was ignorant of the mathematical foundations of information theory, so it seemed like …