minor api enhancements

This commit is contained in:
jomu
2016-06-20 11:09:47 +00:00
parent b58b3f6906
commit a9113ff882
5 changed files with 11 additions and 17 deletions

View File

@ -38,11 +38,10 @@ public class PDFDocumentTest {
@Test
public void testToJson() throws FileNotFoundException, IOException, ConfigurationException, TemplateException {
System.out.println("testToJson");
PDFDocument doc = new PDFDocument();
PDFDocument doc = new PDFDocument(PDFPaperSize.A4);
doc.addFont("bold", new PDFFont("Helvetica-Bold", 12, 2));
doc.addFont("helv12", new PDFFont("Helvetica", 12, 2));
doc.setPaperSize(PDFPaperSize.A4);
PDFTextContent addressContent = new PDFTextContent(doc, 40F, 692F, "Max Mustermann")
.addLine("Musterstraße 123")
.addLine("12345 Musterhausen");