@@ -43,6 +43,8 @@ public final class pdf2htmlEX {
4343 private String p_ownerPassword = "" ;
4444 private String p_userPassword = "" ;
4545 private boolean p_outline = true ;
46+ private boolean p_drm = true ;
47+ private String p_backgroundFormat = "" ;
4648
4749 public static class ConversionFailedException extends Exception {
4850 public ConversionFailedException (String errorMessage ) {
@@ -162,7 +164,8 @@ public File convert() throws IOException, ConversionFailedException {
162164 Integer retVal = call_pdf2htmlEX (m_pdf2htmlEX_dataDir .getAbsolutePath (),
163165 m_poppler_dataDir .getAbsolutePath (), m_pdf2htmlEX_tmpDir .getAbsolutePath (),
164166 this .p_inputPDF .getAbsolutePath (), outputHtml .getAbsolutePath (),
165- this .p_ownerPassword , this .p_userPassword , this .p_outline
167+ this .p_ownerPassword , this .p_userPassword , this .p_outline , this .p_drm ,
168+ this .p_backgroundFormat
166169 );
167170
168171 // retVal values defined in pdf2htmlEX.cc
@@ -183,7 +186,7 @@ public File convert() throws IOException, ConversionFailedException {
183186 return outputHtml ;
184187 }
185188
186- private native int call_pdf2htmlEX (String dataDir , String popplerDir , String tmpDir , String inputFile , String outputFile , String ownerPassword , String userPassword , boolean outline );
189+ private native int call_pdf2htmlEX (String dataDir , String popplerDir , String tmpDir , String inputFile , String outputFile , String ownerPassword , String userPassword , boolean outline , boolean drm , String backgroundFormat );
187190
188191 // Because Java cannot setenv for the current process
189192 static native void set_environment_value (String key , String value );
0 commit comments