Skip to content

Commit 2fe0a88

Browse files
committed
no drm
1 parent ebca561 commit 2fe0a88

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/odr/internal/html/pdf2htmlex_wrapper.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pdf2htmlEX::Param create_params(PDFDoc &pdf_doc, const HtmlConfig &config,
9090
// encryption
9191
param.owner_password = "";
9292
param.user_password = "";
93-
param.no_drm = 0;
93+
param.no_drm = 1;
9494

9595
// misc
9696
param.clean_tmp = 1;
@@ -314,10 +314,8 @@ html::create_poppler_pdf_service(const PopplerPdfFile &pdf_file,
314314
html_renderer_param->delay_background = 1;
315315
}
316316

317-
if (!pdf_doc.okToCopy()) {
318-
if (html_renderer_param->no_drm == 0) {
319-
throw odr::DocumentCopyProtectedException();
320-
}
317+
if (!pdf_doc.okToCopy() && html_renderer_param->no_drm == 0) {
318+
throw odr::DocumentCopyProtectedException();
321319
}
322320

323321
// TODO not sure what the `progPath` is used for. it cannot be `nullptr`

0 commit comments

Comments
 (0)