Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

When i add a image to a PDF, Doc.save() can't catch the exception and don't run and stop there

$
0
0
We use aspose-pdf-10.3.0.jar in  docker,hope insert a picture into a PDF file.
but when we call pdf.save method,the method has been no response.
please tell me does aspose-pdf whether to support running in docker?


com.aspose.pdf.Document pdfDocument1 = new com.aspose.pdf.Document(pdfUrlAll);
...
byte[] bytes = new BASE64Decoder().decodeBuffer(imgBase64);
...
InputStream imageStream = new ByteArrayInputStream(bytes);
...
page.getContents().add(new com.aspose.pdf.Operator.GSave());
...
pdfDocument1.save("/usr/files/test.pdf");

Viewing all articles
Browse latest Browse all 3131

Trending Articles