Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
PDF2HTMLEX_PATH=/path/to/pdf2htmlex
PSTOPDF_PATH=/path/to/ps2pdf
EXTRACT_FORMFIELDS=/path/to/extract-formfields # available via cpp directory
HIDE_FORMFIELDS=/path/to/hide-formfields # available via cpp directory
PDFLIBS_PORT=8000
HTML_GENERATION_TIMEOUT=7000
HTML_GENERATION_BACKOFF=23000
3 changes: 0 additions & 3 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ if (!extractFormfieldsPath) {
process.exit(1);
}

const hideFormfieldsPath = process.env.HIDE_FORMFIELDS;

// 7 seconds (and then 30 seconds) seems like a sensible default I guess? We don't want PDFs
// that don't need postscript optimization to be optimized in this way, but we also want to
// stay under common reverse proxy timeout configurations so we don't receive a 504
Expand All @@ -42,6 +40,5 @@ module.exports = {
extractFormfieldsPath,
pdf2htmlexPath,
psToPdfPath,
hideFormfieldsPath,
htmlGenerationTimeoutConfig
};
26 changes: 0 additions & 26 deletions cpp/hide-formfields/CMakeLists.txt

This file was deleted.

6 changes: 0 additions & 6 deletions cpp/hide-formfields/build.sh

This file was deleted.

39 changes: 0 additions & 39 deletions cpp/hide-formfields/main.cpp

This file was deleted.

3 changes: 1 addition & 2 deletions deployment/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ ENV APP_ROOT=/usr/src/pdf-libs
ARG EXTRACT_FORMFIELDS_ROOT=$APP_ROOT/cpp/extract-formfields

WORKDIR $APP_ROOT
# only copy extract-formfields since hide-formfields is broken
COPY cpp/extract-formfields $EXTRACT_FORMFIELDS_ROOT
WORKDIR $EXTRACT_FORMFIELDS_ROOT
RUN $EXTRACT_FORMFIELDS_ROOT/build.sh && \
Expand All @@ -79,7 +78,7 @@ RUN apt update && apt upgrade -y && \
ghostscript \
&& rm -f /etc/apt/sources.list \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/*

WORKDIR $APP_ROOT

Expand Down
19 changes: 0 additions & 19 deletions src/handlers/pdf/hide-formfields.js

This file was deleted.

1 change: 0 additions & 1 deletion src/handlers/pdf/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
module.exports = {
...require('./get-formfields'),
...require('./optimize-pdf'),
...require('./hide-formfields'),
...require('./convert-to-html'),
};
2 changes: 0 additions & 2 deletions src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ r.use(getFileFromFormData);

r.post('/convertToHtml',
debug(debugScopes.CONVERT_TO_HTML),
// hideFormfields,
convertToHtml,
optimizePdf,
convertToHtml);
Expand All @@ -27,7 +26,6 @@ r.post('/getFormfields', debug('pdfLibs.formfields'), getFormfields);
// DEPRECATED PATHS
r.post('/pdf2html',
debug(debugScopes.FORMFIELDS),
// hideFormfields,
convertToHtml,
optimizePdf,
convertToHtml);
Expand Down
Loading