title: How can I create a custom PDF directly from Jupyter?
body: <p>I’m working on a project at my company where I conduct routine experiments as part of production and quality control (QC). We use custom-built instruments that acquire data from a given experiment and store that data on a database on a company server. Our current interface for analyzing this data is to run a Jupyter Notebook, largely based on Python code, that generates various tables and plots with matplotlib based on the data from a given experiment. We currently heavily rely on manually creating reports of this data, such as exporting some of the results from the Jupyter Notebook as a CSV, and importing it to Excel, etc. The ultimate goal at the end of each experiment is to generate a nicely formatted multi-page PDF with all of the essential information and results.</p>
  
  <p>We really need a better and more automated way to generate reports directly from a Jupyter Notebook in a PDF format, so we can easily attach the report to other PDFs such as batch/production records.</p>
  
  <p>I need to report all of the equipment that I use for an experiment as well as the data from that experiment in a clear and concise way. I also need to include a summary of how the experiment was conducted with each experiment. Ideally, I would be able to input the equipment ID#s directly into Jupyter, create a dataframe with all of the experimental data (images, arrays, etc.), and export this information into a PDF template.</p>
  
  <p>The PDF as imagined, will have a few pages/sections which remain essentially the same over consecutive experiments, but will have sections that must be updated for each new dataset and equipment used. I would also like the PDF to be of commercial quality, in that it has my company's name and logo, a header, and footer.</p>
  
  <p>We’ve dabbled a bit with PyFPDF, but it seems that it might be a bit too limited for our needs. We’ve looked at some other tools, but there’s a lot of options and its not obvious what would work best for our goals and would be the easiest to code. Does anyone have any suggestions that could point us in the right direction? <a href="https://i.stack.imgur.com/WGyNI.png" rel="nofollow noreferrer">Image of one of the pages from the desired PDF output</a></p>