All Projects β†’ arosspope β†’ src2pdf

arosspope / src2pdf

Licence: MIT license
Generate a pdf report of your source code using bash and LaTeX.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to src2pdf

Pdf Bot
πŸ€– A Node queue API for generating PDFs using headless Chrome. Comes with a CLI, S3 storage and webhooks for notifying subscribers about generated PDFs
Stars: ✭ 2,551 (+10104%)
Mutual labels:  pdf-generation
api2pdf.php
PHP client library for the Api2Pdf.com REST API - Convert HTML to PDF, URL to PDF, Office Docs to PDF, Merge PDFs, HTML to Image, URL to Image, HTML to Docx, HTML to Xlsx, PDF to HTML, Thumbnail preview of office files
Stars: ✭ 42 (+68%)
Mutual labels:  pdf-generation
Docotic.Pdf.Samples
C# and VB.NET samples for Docotic.Pdf library
Stars: ✭ 52 (+108%)
Mutual labels:  pdf-generation
Ptex Ng
Asiatic pTeX
Stars: ✭ 239 (+856%)
Mutual labels:  pdf-generation
Dhalang
Generate PDFs and make screenshots of HTML using Puppeteer in Ruby
Stars: ✭ 41 (+64%)
Mutual labels:  pdf-generation
rig
RIG - A Randomised ID Card Generator
Stars: ✭ 20 (-20%)
Mutual labels:  pdf-generation
Docto
Simple command line utility for converting .doc & .xls files to any supported format such as Text, RTF, CSV or PDF
Stars: ✭ 220 (+780%)
Mutual labels:  pdf-generation
Task2pdf
Kanboard - Task2PDF
Stars: ✭ 48 (+92%)
Mutual labels:  pdf-generation
atto
PDF renderer for Mapbox-GL-Native
Stars: ✭ 27 (+8%)
Mutual labels:  pdf-generation
Decision-Tree-Implementation
A python 3 implementation of decision tree (machine learning classification algorithm) from scratch
Stars: ✭ 19 (-24%)
Mutual labels:  pdf-generation
YetiForcePDF
The best library in the world to generate PDF from HTML
Stars: ✭ 15 (-40%)
Mutual labels:  pdf-generation
JasperPHP-OpenBoleto
Um exemplo de uso de openboleto/openboleto em conjunto com QuilhaSoft/JasperPHP
Stars: ✭ 24 (-4%)
Mutual labels:  pdf-generation
Android-PDF
Create PDF in Android using iText
Stars: ✭ 53 (+112%)
Mutual labels:  pdf-generation
Android Pdfmyxml
convert android xml layouts into PDF document, works on all versions of Android.
Stars: ✭ 231 (+824%)
Mutual labels:  pdf-generation
Expense Tracker with Pdf report
An expense Tracker πŸ”₯πŸ”₯ which lets you add transactions πŸ–ŠπŸ–Š and generate a pdf report of all of your transactionsπŸ“‹πŸ“‹
Stars: ✭ 16 (-36%)
Mutual labels:  pdf-generation
Asciidoctor Web Pdf
Convert AsciiDoc documents to PDF using web technologies
Stars: ✭ 219 (+776%)
Mutual labels:  pdf-generation
designfactory-app
A project that generates pdf documents from design templates from Figma + your own data via the GUI or REST API.
Stars: ✭ 30 (+20%)
Mutual labels:  pdf-generation
soldoc
A solidity documentation generator, based in NatSpec format. πŸ“ƒ with standalone HTML, pdf, gitbook and docsify output ✏️ just plug and play.
Stars: ✭ 54 (+116%)
Mutual labels:  pdf-generation
easy-resume
πŸŽ‰ A less is more online resume editor!
Stars: ✭ 116 (+364%)
Mutual labels:  pdf-generation
dhtml2pdf
Simple, free and very easy to use PHP API that allows you to see, download or get the binary of the PDF generated from the HTML of an URL.
Stars: ✭ 27 (+8%)
Mutual labels:  pdf-generation

src2pdf πŸ“ƒ

Yet another source code to pdf script using LaTeX.

Introduction

Rationale

Ever needed to hand in a hardcopy of the code you produced in a university assignment? Have you almost destroyed your keyboard trying to format a word document (or similar) containing this same source code?

Well look no further, src2pdf is here to put your troubled mind at ease! Using LaTeX and Bash, present your development efforts in a neat and ordered format using one command!

Example

1 2

Show how fancy you are with a title page, table of contents, and syntax highlighting based on source language

How is this script different?

Honestly, this script is not that different to the others out there. However, this implementation does allow you to customise a title, subtitle, author, and source language. If this script gains popularity, I might put in extra features such as fancier title pages.

Installation

Required packages

As this script extensively uses LaTeX, you will need to ensure that it is installed on your system. As an example for Ubuntu, you might install the packages...

$ apt-get install texlive-latex-base texlive-latex-extra

More generally, this script will require the following packages to be installed: pdflatex, color, listings.

Finding the script

After installing the required packages, the script should work out-of-the-box after making it executable. Personally, I like to put the script somewhere where it can be easily found on $PATH (such as /usr/local/bin).

$ chmod +x /usr/local/bin/src2pdf.sh

Operation

Navigate to your project directory and run the following (assuming the script is on the $PATH):

arosspope@(project) $ src2pdf

You will then be prompted with a series of questions to generate and customise the pdf. Here is an example of the script running:

$ Title (blank to use prm_sim) : PRM Simulator
$ Author (blank for nothing) : arosspope
$ Subtitle (blank for nothing) : A Probabilistic RoadMap (PRM) simulator in ROS
$ Language of files to parse (blank for 'C++') :
$ Provide a space separated list of extensions to include (default is 'h cpp') :
$ Re-order files to place header files in front of source files? (y/n) : y
  Re-ordering files.
$ Review files found? (y/n) : n
  Creating tex file.
  Creating pdf.
...
  Renaming output files.
  Cleaning up.
Done, output file is 'PRM Simulator.pdf' in this directory

Please note that special characters #%$_^&}{)( within the title, subtitle and/or author positions must be escaped, or the script will fail to run.

Currently, the supported languages are specified by the LaTeX source code listings page. They include (but are not limited to) C++, C, C#, Java, Matlab, Python, R, SQL and HTML.

Acknowledgements

The bones of this script comes from the tutorial 'BASH Script to generate PDF of Source Code with Syntax Highlighting using LaTeX' by Sam Hobbs, 2017.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].