Skip to content

Conversation

matthias8283
Copy link

No description provided.

}
}

class FontExtractor extends PDFTextStripper {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldnt this be static

TranscoderInput input = new TranscoderInput(new ByteArrayInputStream(svgFragment.getBytes()));

File outputFile = tempFolder.newFile("output.pdf");
OutputStream os = new FileOutputStream(outputFile);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not a bytearrayoutputstream


PDDocument pdfDocument = null;
try {
pdfDocument = Loader.loadPDF(outputFile);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try (x pdfDocument = Loader.loadPDF(outputFile)) {
xxx
}

@simonsteiner1984
Copy link
Contributor

Branch name should be called temp/username-xxx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants