minor api enhancements
This commit is contained in:
@ -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");
|
||||
|
||||
Reference in New Issue
Block a user