EPS image inserted as a stamp into PDF gets rasterised. Please advise if this is a bug or limitation of aspose.page library?
Dirty code snippet:
@Test
void vectorImage() throws Exception {
byte[] imageBytes =
new ClassPathResource("images/braske.eps").getInputStream().readAllBytes();
PsDocument vectorDocument = new PsDocument(new ByteArrayInputStream(imageBytes));
ByteArrayOutputStream vectorOutputStream = new ByteArrayOutputStream();
vectorDocument.saveAsPdf(vectorOutputStream, new PdfSaveOptions());
ByteArrayInputStream vectorInputStream = new ByteArrayInputStream(vectorOutputStream.toByteArray());
PdfPageStamp stamp = new PdfPageStamp(vectorInputStream, 1);
try (Document document = new Document()) {
document.getPages().add().addStamp(stamp);
document.save("images/pdfOutputStream.pdf");
} catch (Exception e) {
e.printStackTrace();
}
braske.eps.zip (328.9 KB)