rst2pdf.py is a PDF front-end for Docutils that is compatible with the rst2*.py front ends of the Docutils suite. It enables the generation of PDF documents from a reStructuredText source in one step cleaning up intermediate files.
Questions tagged [rst2pdf]
47 questions
0
votes
1 answer
How to right align section numbers using the rst2pdf stylesheet
I am using rst2pdf for converting an rst document. In the table of contents, I have the following
.
But I want the right aligned numbering, like the following
.
I am using the rst2pdf stylesheet for tableofcontents initialization. I didn't know how…

saichand
- 1,165
- 1
- 10
- 25
0
votes
1 answer
Automatic fitting of text content to page with rst2pdf
Does rst2pdf provide automatic adjustment of text size to fit a bullet or numbered list to the page for presentation purposes? Similar to what LaTeX provides.

Nordlöw
- 11,838
- 10
- 52
- 99
0
votes
1 answer
Restructured text splits paragraph between pages and adds erroneous list bullet
So my issue is that I am generating a document for one of our products and this item is split between two pages and it adds an extra bullet (as circled below). How can I remove this wrong bullet or simply force the list item to the next page?
Syntax…

Sarah
- 669
- 2
- 8
- 21
0
votes
1 answer
rst2pdf AttributeError: 'PDFWriter' object has no attribute 'custom_cover'
Cant' create PDF's anymore, earlier I could but then I guess I messed up my python installation on my mac...
I run this command:
sphinx-build -D language=de -b pdf /Applications/MAMP/htdocs/sakkadentrainer/doc/…

B. Rentrug
- 103
- 1
- 11
0
votes
1 answer
Broken text in pdf with sphinx-build
I use sphinx-build (Sphinx v1.6.3) on a Mac (Mojave 10.14.1) to generate a PDF in different languages.
All languages work, but polish gives me broken characters:
They original text is stored as *.rst file (in German) and then I translate them into…

B. Rentrug
- 103
- 1
- 11
0
votes
1 answer
Line spacing issue when using restructured text line blocks
I am using RST styling to generate a PDF using rst2pdf. Sometimes I have content that needs to span multiple lines. I can't seem to figure out how to do this with line blocks because the spacing is way off. Does anyone know how to fix the line…

Sarah
- 669
- 2
- 8
- 21
0
votes
1 answer
Sphinx - rst2pdf: is it possible to specify the document footer in the conf.py file?
I saw from The Rst2pdf Handbook that when you use rst2pdf standalone you can specify a default footer in its configuration file. Is it possible to do something similar when using it via Sphinx, e.g. by specifying the desired footer as pdf_footer or…

Nicola Musatti
- 17,834
- 2
- 46
- 55
0
votes
2 answers
Sphinx pdfbuilder format not resolved, probably missing URL
I am trying to generate a pdf using rst2pdf, but keep getting the error "format not resolved, probably missing URL or undefined destination for target".
I use sphinx to generate the .rst files and am able to generate the HTML output just fine.
To…

Mohammad Ahmad
- 133
- 1
- 1
- 8
0
votes
1 answer
Change the PDF file styling
Would like to change the styling of the generated PDF documents. Have read the manual:
http://ralsina.me/static/manual.pdf
But there is no information that could help. I am modifying the rst2pdf.css file, but the changes never take effect.
The files…

0leg
- 13,464
- 16
- 70
- 94
0
votes
1 answer
How do I create a bookmark in a pdf with rst2pdf?
I need to generate a pdf from a large set of rst files. Is it possible to generate bookmarks with rst2pdf? How do I do it? I am trying to avoid having to do it by hand with Acrobat.
The documentation has headings like 1.1, 1.1.1, 1.1.2,…

johnny
- 19,272
- 52
- 157
- 259
0
votes
1 answer
I get "SyntaxError" for rst2pdf command after installing RST2PDF in Windows 7
After I install RST2PDF in Windows 7, and run the command rst2pdf or rst2pdf -h, it says
SyntxError: Invalid syntax
I installed rst2pdf V.93 using PIP and have set the path to scripts in python directory.
Here is the error:
c:>rst2pdf Traceback…

Nalini
- 1
- 2
0
votes
1 answer
Cannot import custom stylesheet in rst2pdf
I try to run this command:
rst2pdf /home/desarrollador/Projects/HUAWEI-3G-PROJECT/documentor.py.rst -o /home/desarrollador/Projects/HUAWEI-3G-PROJECT/documentor.py.pdf --stylesheet-path=/home/desarrollador/Projects/HUAWEI-3G-PROJECT…

Luis Masuelli
- 12,079
- 10
- 49
- 87
0
votes
1 answer
Visualizing rst diffs with rst2pdf
Is there an easy way to visualize the differences between rst files using rst2pdf? I know I could use rst2latex instead and then latexdiff to generate PDF files (and that is the effect I am after), but I would like to have the same style in the…

Karol
- 1,246
- 2
- 13
- 20
0
votes
1 answer
style hyperlinks in reportlab pdfs
I am using rst2pdf to generate a PDF. I am using links to sections and they appear as hyperlinks in the PDF. If I hover over the link I can see it says "Go to page XXX". Is there a way to insert that page number into the text, so that it can be seen…

esc
- 395
- 1
- 3
- 12
0
votes
1 answer
Sphinx PDF output is bad. How do I chase down the cause?
My Sphinx input is six rst files and a bunch of PNGs and JPGs. Sphinx generates the correct HTML, but when I make pdf I get an output file that comes up blank in Adobe Reader (and comes up at over 5000%!) and does not display at all in Windows…

timecc
- 161
- 1
- 11