Skip to content

Commit 473d9e4

Browse files
authored
Merge pull request #460 from leonorader/exception-to-ioexception
changes Exception to IOException in PdfRendererBuilder fixes #406
2 parents 1a6d2c9 + f434dac commit 473d9e4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

openhtmltopdf-pdfbox/src/main/java/com/openhtmltopdf/pdfboxout/PdfRendererBuilder.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
import com.openhtmltopdf.util.XRLog;
1212

1313
import org.apache.pdfbox.pdmodel.PDDocument;
14+
15+
import java.io.IOException;
1416
import java.io.OutputStream;
1517
import java.util.logging.Level;
1618

@@ -30,9 +32,9 @@ public PdfRendererBuilder() {
3032
* Run the XHTML/XML to PDF conversion and output to an output stream set by
3133
* toStream.
3234
*
33-
* @throws Exception
35+
* @throws IOException
3436
*/
35-
public void run() throws Exception {
37+
public void run() throws IOException {
3638
PdfBoxRenderer renderer = null;
3739
try {
3840
renderer = this.buildPdfRenderer();

0 commit comments

Comments
 (0)