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
5
votes
0 answers
restructuredText inline literal that can wrap to the next line (for PDF output)
I am using restructuredText to create a report which includes tom log file outputs.
What I have is a number of sections with numbered lists of literals.
This looks like this:
#. ``some log file output``
#. ``more output``
Now the problem with this…

Gregory Kuhn
- 1,627
- 2
- 22
- 34
5
votes
1 answer
reStructuredText styles
I found this guide for rst2pdf to find out how to style a reStructuredText file in the resulting pdf document. Having the following in my JSON stylesheet, for example, it is successfully applied to the whole document:
"pageSetup" : {
"size":…

Joseph Victor Zammit
- 14,760
- 10
- 76
- 102
4
votes
2 answers
rst2pdf: Referencing automatically-numbered figures
I have directives in my rst document, which insert figures; and I use rst2pdf's :counter: directive to automatically number them.
.. figure:: Graphics\Manual_test_timeline.png
:scale: 100%
:align: center
Figure :counter:`figure`. Manual…

Mike Pennington
- 41,899
- 19
- 136
- 174
3
votes
3 answers
RST: how to decrease font size in code blocks?
I would like to include a code block in a presentation I am preparing with Restructured Text. But the font used in the code block is huge and it can not fit inside resulting code box:
How can I reduce the font size used in code blocks?

Luís de Sousa
- 5,765
- 11
- 49
- 86
3
votes
2 answers
How to disable header on frontpage of rst2pdf document?
I am generating some PDF's and I would like to disable the header on the frontpage. I know there are built-in templates in rst2pdf and one template is called coverPage but I don't seem to be able to get it to work.
The manual is saying you should…

DrDee
- 3,549
- 6
- 30
- 37
3
votes
0 answers
How do I change the background color in rst2pdf?
When I generate any file using rst2pdf command line, the background color for the generated PDF files is not white, but a kind of light green.
How do I set the background color to white/transparent? These files must be printed.
Additionally: how do…

Luis Masuelli
- 12,079
- 10
- 49
- 87
3
votes
0 answers
rst2pdf counter number reuse
I need to re-use a table or image number multiple times, once in the introductory text, once under the table/image as a caption, and maybe another time as a link to it.
But every time I use :counter:`table` the counter increases by 1.
How can I…

Adrian Cumpanasu
- 1,028
- 1
- 10
- 24
2
votes
1 answer
Sphinx rst2pdf and role directives
In a reStructuredText on Sphinx 2.x, I want to put a content that changes depending on the output format.
In any source document, say, index.rst, add the following lines:
.. role:: pdf(raw)
:format: pdf
.. role:: latex(raw)
:format: latex
..…

Culip
- 559
- 8
- 24
2
votes
0 answers
Usig a table as a header in rst2pdf
I'm trying to use a table like this as a header for my document:
+----------------------------+----------------------+----------------------+
| .. image:: images/logo.png | .. class:: headtitle | |codigo| | | …

Juan Manuel
- 43
- 1
- 7
2
votes
1 answer
Figures does not appear in original size in pdf format converted by ReStructuredText
I am creating a documentation using ReStructuredText (rst) format. I convert the documentation to pdf format with this rst converter. When I try to link a figure, it does not appear in the original size of image in pdf format. All the displayed…

mirind4
- 1,423
- 4
- 21
- 29
2
votes
1 answer
How to add section numbering when using Sphinx with rst2pdf
I am unable to turn on automatic section numbering using Sphinx together with rst2pdf.
The sectnum directive does not work. Is it possible to achieve this result somehow?

Samuel Hapak
- 6,950
- 3
- 35
- 58
2
votes
3 answers
Adding a external PDF as appendix with ReStructuredText
I'm writing a major report, and have two PDF files I'd like to include as appendices. The report is written using ReStructuredText, and rst2pdf will be used to convert it.
Does docutils or rst2pdf have any functionality for external files as…

Chrizmo
- 626
- 2
- 7
- 18
1
vote
0 answers
Dynamic footer text in rst2pdf
I am using rst2pdf to create some reports. Now I would like to add a page footer to the rst source, which content changes within the documents. For instance one of the reports contains some large tables. In this case I would like to have a footer…

valpo
- 11
- 1
1
vote
1 answer
How to create a borderless table in rst2pdf?
I would like to create a borderless table in rst2pdf extension with Sphinx, but I can't seem to find a way to work around the stylesheet/css of the extension.
Any suggestions on this?

RYAN TEMP
- 13
- 3
1
vote
0 answers
Sphinx rst2pdf: Numbering figures
I have some documents on Sphinx 2.x. In addition to an HTML version (make html), I want to export it in a PDF version as well, preferably using rst2pdf:
My documents have some figure images. Here's a snippet in index.rst.
.. figure::…

Culip
- 559
- 8
- 24