1212import java .nio .file .Path ;
1313import java .util .Base64 ;
1414import lombok .Getter ;
15- import lombok .Setter ;
1615import org .apache .pdfbox .io .IOUtils ;
1716
1817/**
@@ -24,9 +23,7 @@ public class LocalInputSource {
2423 private byte [] file ;
2524 @ Getter
2625 private final String filename ;
27- @ Setter
2826 private PDFInputOperation pdfInputOperator ;
29- @ Setter
3027 private PDFCompression pdfCompressor ;
3128 // Store here to avoid recalculating every time.
3229 private Boolean isPDF ;
@@ -62,14 +59,26 @@ public LocalInputSource(String fileAsBase64, String filename) {
6259 this .filename = filename ;
6360 }
6461
65- private PDFInputOperation getPDFInputOperator () {
62+ /**
63+ * Get the PDFInputOperation instance.
64+ * Override this method to provide custom PDF input operation handling.
65+ *
66+ * @return PDFInputOperation instance
67+ */
68+ protected PDFInputOperation getPDFInputOperator () {
6669 if (this .pdfInputOperator == null ) {
6770 this .pdfInputOperator = new PDFInputOperator ();
6871 }
6972 return this .pdfInputOperator ;
7073 }
7174
72- private PDFCompression getPDFCompressor () {
75+ /**
76+ * Get the PDFCompression instance.
77+ * Override this method to provide custom PDF compression handling.
78+ *
79+ * @return PDFCompression instance
80+ */
81+ protected PDFCompression getPDFCompressor () {
7382 if (this .pdfCompressor == null ) {
7483 this .pdfCompressor = new PDFCompressor ();
7584 }
0 commit comments