Questions tagged [pdfpages]

A Python method, in matplotlib, for generating a pdf with multiple pages or a Latex package for inserting external pdf documents.

is either a Python method for generating a pdf with multiple pages or a Latex package for inserting external pdf documents.

If the question relates to the Python method it should usually be tagged with both and . If it relates to the Latex package it should be tagged with .

Further reading:

60 questions
0
votes
1 answer

saving multiple plots to pdf with PdfPages python

I'm trying to save my output (70+ graphs) from jyputer notebook into pdf file. No errors or whatsoever, but only the first graph is being exported. Can anyone please help me to understand what is wrong? import numpy as np import matplotlib.pyplot as…
Luba Weissmann
  • 187
  • 1
  • 1
  • 8
0
votes
1 answer

Cannot center table on PDF-page when saving a matplotib table using backend_pdf PdfPages

I can generate a matplotlib table (without any visibly associated plot) in a jupyter notebook, but when I try to save it to a PDF using matplotlib's internal backend_pdf.PdfPages wrapper, it never appears centered on a page. I've tried messing with…
Marc Maxmeister
  • 4,191
  • 4
  • 40
  • 54
0
votes
1 answer

Add a hyperlink in a matplotlib plot inside a PdfPages page Python

I am creating multiple multipage PDF reports using PdfPages by running a for loop through a dataframe. I have everything ready, except I need to include some hyperlinks (between 0 and 3), preferably on msr_line4, but if they need to be on…
0
votes
2 answers

Create Multipage PDF in matplotlib without drawing figure on desktop

In the following example code... from matplotlib.backends.backend_pdf import PdfPages import matplotlib.pyplot as plt with PdfPages('multipage_pdf.pdf') as pdf: for i in range(10): fig = plt.figure() ax = fig.add_subplot(111) …
Sosel
  • 1,678
  • 1
  • 16
  • 31
0
votes
1 answer

Saving multiple figures in same pdf by iterating over variables - Python

How do I use pp.savefig() properly to iterate over multiple variables? Instead of saving each figure one by one and adding them to the pdf from matplotlib.backends.backend_pdf import PdfPages pp =…
MaxW
  • 3
  • 2
0
votes
1 answer

PDFplumber password and check_extractable

I am using pdfplumber library for parsing pdf. The way to access a pdf file is "pdfplumber.open(path)". Can someone please help me how to pass the password and the check_extractable parameters in this.
0
votes
3 answers

how to include pdfpages in rmarkdown for beamer output

I am creating pdf slides using rmarkdown and beamer. When using latex instead of rmarkdown, I can include arbitrary pages from pdf files into my slides with \usepackage{pdfpages} ... \includepdf[pages={1-10}]{another_file.pdf} Is it possible to…
Ott Toomet
  • 1,894
  • 15
  • 25
0
votes
1 answer

Anaconda: matplotlib PdfPages import error

I've a problem with importing the PdfPages function from the matplotlib package on my anaconda environment. I get the following error: Python 2.7.13 |Anaconda 4.4.0 (64-bit)| (default, Dec 20 2016, 23:09:15) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]…
0vbb
  • 839
  • 11
  • 27
0
votes
2 answers

Error when trying to write a matplotlib plot from Pandas DataFrame to pdf

I'm trying to write a plot from matplotlib to a pdf file but getting an error. I'm creating a plot using matplotlib from a Pandas DataFrame like this: bplot = dfbuild.plot(x='Build',kind='barh',stacked='True') From the documentation:…
sparrow
  • 10,794
  • 12
  • 54
  • 74
0
votes
2 answers

python: Can't save figures in Directory with spaces

I've been creating figures using python matplotlib and saving them into my Dropbox folder for a while now using: import matplotlib.pyplot as plt from matplotlib.backends.backend_pdf import PdfPages plot = plt.figure(1) Created…
user2165857
  • 2,530
  • 7
  • 27
  • 39
0
votes
1 answer

Retaining alpha settings in matplotlib imshow when using PdfPages for multi-page PDF export

I'm generating overlaid plots using imshow and printing them to a multipage pdf using matplotlib.backends.backend_pdf.PdfPages. I'm setting the alpha of the background in the overlay to 0 using: edge = np.ma.masked_where(edge == 0,…
jdv
  • 13
  • 4
-1
votes
1 answer

includepdf overlays document stack on one page

I'm trying to include a PDF in a document using \includepdf. The problem is that Latex is putting all sites of the pdf on one page of the document (over each other). I'm a bit lost on that one and didn't found any…
-1
votes
1 answer

Undefined control sequence when using \includepdf

I'm new to LaTeX. I am trying to include a PDF file using Overleaf and I don't know why I got several errors: "undefined control sequence", "PDF not found". I think I have uploaded the PDF file right, I don't know what might be the problem. I don't…
-1
votes
1 answer

How to upload a PDF(using PdfPages) to AWS S3 in Python

I have some plots in my code, and I want them saved as Pdf in S3 storage from AWS.
Thuener
  • 1,359
  • 1
  • 13
  • 13
-1
votes
1 answer

histogram not showing in pdf when subploting

I am trying to plot in a pdf file a time series and a histogram for each of the variables in my data frame. Each action works separately, but when subploting both of them in the same page, the histogram is not showing. Any idea what I am doing…
Magdalena
  • 1
  • 3
1 2 3
4