Skip to content

Commit 67dfaa6

Browse files
Expose setDRM and setBackgroundFormat in Java interface
1 parent e98c1a4 commit 67dfaa6

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

  • pdf2htmlEX/src/main/java/com/viliussutkus89/android/pdf2htmlex

pdf2htmlEX/src/main/java/com/viliussutkus89/android/pdf2htmlex/pdf2htmlEX.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,19 @@ public pdf2htmlEX setOutline(@NonNull boolean enableOutline) {
136136
return this;
137137
}
138138

139+
public pdf2htmlEX setDRM(@NonNull boolean enableDRM) {
140+
this.p_drm = enableDRM;
141+
return this;
142+
}
143+
144+
/**
145+
* @param backgroundFormat: png (default), jpg or svg
146+
*/
147+
public pdf2htmlEX setBackgroundFormat(@NonNull String backgroundFormat) {
148+
this.p_backgroundFormat = backgroundFormat;
149+
return this;
150+
}
151+
139152
/*
140153
* @deprecated pdf2htmlEX-Android doesn't fork anymore
141154
*/

0 commit comments

Comments
 (0)