Robin Becker
Robin Becker
This works better for me to get the image onto the A4, but the SimpleDoc class isn't really good enough to handle this as the Frame is not controllable (not...
Unfortunately there's padding in the Frame that gets built into SimpleDoc so the image is still offset to the right (by 6 points I think).
This works pretty good with SimpleDoc ``` # svg_demo1.py import os from reportlab.graphics import renderPDF, renderPM from reportlab.platypus import SimpleDocTemplate, Image from svglib.svglib import svg2rlg def svg_demo(image_path, output_path): drawing =...
I looked at the python_logo issue; first problem is that the colours are defined as gradients which I don't think the RL graphics api doesn't handle. I suspect the PDF...
I think this is almost certainly an issue with the underlying libart library which we use to render the images. It looks as though the fill scanlines are just escaping...
The latest release of reportlab 3.5.5 contains a probabilistic fix, Looking in the code it seems randomization is a standard way to fix stability issues. Hope it works for svglib.
I'm not sure that this problem is the same issue. The original issue was with png rendering and relates to _renderPM.c; this error is happening in PDF rendering. It looks...
As I understand the problems here it seems things would be improved if 1) the font search could include .ttc files and 2) if the subfontIndex could actually be a...
I have it working mostly, but there's a can of worms related to actually extracting the Postscript Font Name. If they all have the windows name that's relatively OK as...
I made a change to the reportlab ttfonts.py code that should allow lookup by either an int or string. The lookup for the matching subfont by name is not particularly...