blob: a6a684eb623a4cedf782da6e2431afb79cb5b64b [file] [log] [blame]
Marc Kupietzce1aa0c2023-06-15 07:50:23 +02001#!/bin/sh -eu
2in=$1 out=$2 page0=${3:-} page1=${4:-$page0}
Marc Kupietz3707b672024-05-02 11:26:13 +02003google-chrome --disable-web-security --user-data-dir="./" --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=TranslateUI,BlinkGenPropertyTrees,ImprovedCookieControls,SameSiteByDefaultCookies,LazyFrameLoading --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --headless=old --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --no-startup-window --disable-gpu --run-all-compositor-stages-before-draw --no-pdf-header-footer --virtual-time-budget=42000 --print-to-pdf="$out".tmp "$in"
Marc Kupietzfb80dc52023-06-18 14:31:50 +02004pdfseparate -f 1 -l 1 "$out".tmp $out