mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-07 00:28:39 +01:00
fix(split): extract pages with qpdf and decouple ZIP from output mode
This commit is contained in:
+35
-11
@@ -359,17 +359,41 @@
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="zip-option-wrapper" class="mt-4 flex items-center">
|
||||
<input
|
||||
id="download-as-zip"
|
||||
type="checkbox"
|
||||
class="w-4 h-4 text-indigo-600 bg-gray-700 border-gray-600 rounded focus:ring-indigo-600 ring-offset-gray-800 focus:ring-2"
|
||||
/>
|
||||
<label
|
||||
for="download-as-zip"
|
||||
class="ml-2 text-sm font-medium text-gray-300"
|
||||
>Download as ZIP (for multiple files)</label
|
||||
>
|
||||
<div id="output-mode-wrapper" class="mt-4">
|
||||
<p class="block mb-2 text-sm font-medium text-gray-300">Output</p>
|
||||
<div class="flex items-center mb-2">
|
||||
<input
|
||||
id="output-combine"
|
||||
type="radio"
|
||||
value="combine"
|
||||
name="split-output-mode"
|
||||
checked
|
||||
class="w-4 h-4 text-indigo-600 bg-gray-700 border-gray-600 focus:ring-indigo-600 ring-offset-gray-800 focus:ring-2"
|
||||
/>
|
||||
<label
|
||||
for="output-combine"
|
||||
class="ml-2 text-sm font-medium text-gray-300"
|
||||
>Single combined PDF</label
|
||||
>
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<input
|
||||
id="output-separate"
|
||||
type="radio"
|
||||
value="separate"
|
||||
name="split-output-mode"
|
||||
class="w-4 h-4 text-indigo-600 bg-gray-700 border-gray-600 focus:ring-indigo-600 ring-offset-gray-800 focus:ring-2"
|
||||
/>
|
||||
<label
|
||||
for="output-separate"
|
||||
id="output-separate-label"
|
||||
class="ml-2 text-sm font-medium text-gray-300"
|
||||
>One PDF per range</label
|
||||
>
|
||||
</div>
|
||||
<p class="mt-2 text-xs text-gray-400">
|
||||
Multiple files are downloaded together as a ZIP.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<button id="process-btn" class="btn-gradient w-full mt-6">
|
||||
|
||||
Reference in New Issue
Block a user