mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-06-06 18:30:57 +00:00
Split on QR Browser
This commit is contained in:
parent
877386cdd3
commit
a006937e6e
10100
public/dep/jsQR.js
Normal file
10100
public/dep/jsQR.js
Normal file
File diff suppressed because it is too large
Load Diff
@ -110,7 +110,6 @@ export const splitOnly = {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
// Split a document up into multiple documents
|
|
||||||
export const rotateOnly = {
|
export const rotateOnly = {
|
||||||
outputOptions: {
|
outputOptions: {
|
||||||
zip: false
|
zip: false
|
||||||
@ -124,7 +123,6 @@ export const rotateOnly = {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
// Split a document up into multiple documents
|
|
||||||
export const imposeOnly = {
|
export const imposeOnly = {
|
||||||
outputOptions: {
|
outputOptions: {
|
||||||
zip: false
|
zip: false
|
||||||
@ -138,7 +136,6 @@ export const imposeOnly = {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
// Split a document up into multiple documents
|
|
||||||
export const removeBlankPagesOnly = {
|
export const removeBlankPagesOnly = {
|
||||||
outputOptions: {
|
outputOptions: {
|
||||||
zip: false
|
zip: false
|
||||||
@ -150,4 +147,19 @@ export const removeBlankPagesOnly = {
|
|||||||
operations: []
|
operations: []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const splitOnQR = {
|
||||||
|
outputOptions: {
|
||||||
|
zip: false
|
||||||
|
},
|
||||||
|
operations: [
|
||||||
|
{
|
||||||
|
type: "splitOn",
|
||||||
|
values: {
|
||||||
|
type: "QR_CODE"
|
||||||
|
},
|
||||||
|
operations: []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -1,7 +1,6 @@
|
|||||||
// PDFLib gets importet via index.html script-tag
|
// PDFLib gets imported via index.html script-tag
|
||||||
// PDFJS as pdfjsLib via index.html script-tag
|
// PDFJS as pdfjsLib via index.html script-tag
|
||||||
// TODO: import jsQR
|
// jsQR via index.html script-tag
|
||||||
|
|
||||||
|
|
||||||
import * as pdfcpuWraopper from "./wasm/pdfcpu-wrapper-browser.js";
|
import * as pdfcpuWraopper from "./wasm/pdfcpu-wrapper-browser.js";
|
||||||
const OpenCV = { cv: cv } // OPENCV gets importet as cv via index.html script-tag
|
const OpenCV = { cv: cv } // OPENCV gets importet as cv via index.html script-tag
|
||||||
|
@ -5,11 +5,11 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Document</title>
|
<title>Document</title>
|
||||||
|
|
||||||
<!--TODO: Remove External Dependencies-->
|
|
||||||
<script src="/dep/pdf-lib.min.js"></script>
|
<script src="/dep/pdf-lib.min.js"></script>
|
||||||
<script src="/dep/downloadjs_1.4.7.js"></script>
|
<script src="/dep/downloadjs_1.4.7.js"></script>
|
||||||
|
|
||||||
<script src="/dep/pdf.min.js"></script>
|
<script src="/dep/pdf.min.js"></script>
|
||||||
|
<script src="/dep/jsQR.js"></script>
|
||||||
|
|
||||||
<script src="/wasm/browserfs.min.js"></script>
|
<script src="/wasm/browserfs.min.js"></script>
|
||||||
<script src="/wasm/opencv/opencv_3_4_custom_O3.js"></script>
|
<script src="/wasm/opencv/opencv_3_4_custom_O3.js"></script>
|
||||||
|
|
||||||
|
@ -40,4 +40,4 @@ import * as Functions from "./functions.js";
|
|||||||
download(result.buffer, result.fileName, "application/pdf");
|
download(result.buffer, result.fileName, "application/pdf");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
})(exampleWorkflows.removeBlankPagesOnly);
|
})(exampleWorkflows.splitOnQR);
|
Loading…
x
Reference in New Issue
Block a user