Skip to content

stengerh/simple-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple PDF Writer

A simple Java library for creating simple PDFs.

Build Status Quality Gate Maven Central Javadocs

Features

  • Single page with multiple lines of text
    • No automatic line breaks though
    • Page layout s A4 portrait
  • Font is Times-Roman 18pt
  • Document information metadata
  • ISO/IEC 8859-1 encoding for printed text and metadata

Usage

import com.github.stengerh.simplepdfwriter.SimplePDFWriter;

...

OutputStream out = ...;
try (SimplePDFWriter pdfWriter = SimplePDFWriter.builder()
       .title("Simple PDF")
       .author("Me")
       .creationDate(OffsetDateTime.now())
       .build(out)) {
   pdfWriter.println("Hello world!");
}

Requirements

  • Java 8
  • Runtime dependencies: none
  • Test dependencies:
    • JUnit 5

Download

See Github releases.

No Maven repository available yet.

Links

About

A simple Java library for creating simple PDFs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages