Skip to content

Commit

Permalink
update lib, create PDF test
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga committed Jul 10, 2022
1 parent b8c530a commit 394848f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ var pdfFile = pdftools.createPDF([{
y: 30,
fontSize: 30
}
]
]);
```

## Methods
Expand Down
2 changes: 1 addition & 1 deletion android/src/ti/pdftools/TiPdftoolsModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public TiBlob imagesToPdf(Object obj)
@Kroll.method
public TiBlob createPDF(Object obj) {
PDDocument document = new PDDocument();
PDPage page = new PDPage();
PDPage page = new PDPage(PDRectangle.A4);
document.addPage(page);
PDPageContentStream contentStream;
PDFont font = PDType1Font.HELVETICA;
Expand Down

0 comments on commit 394848f

Please sign in to comment.