Files
VA-Control-for-linux/va/my_pyfpdf/pyfpdf-1.7.2/attic/utils/Fix1.py
T
maikandClaude Opus 4.8 a7c93fa266 Erster Commit: nativer Linux-Port aus macOS-Bytecode
Läuft die Voice Acoustic VA-Remotecontrol (AllDSP AllControl) nativ unter Linux
auf echtem wxGTK 3.0 — ohne Wine und ohne dekompilierten App-Code. Ausgeführt wird
das unveränderte Python-2.7-Bytecode aus dem macOS-.app; C-Extensions (wxGTK/numpy/
scipy/PortAudio) kommen nativ aus Debian stretch.

Enthält: va/ (Original-.pyc + pure-Python-Libs + Assets + launch.py mit den drei
Linux-Fixes), Dockerfile/run.sh/entrypoint.sh, reference/ (dekompilierter Quellcode
zum Debuggen) und README/STATUS. img.cache (378 MB, regenerierbar) ist per
.gitignore ausgeschlossen.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-20 19:57:01 +02:00

16 lines
396 B
Python

# Updates the unique, final XREF table
# Usage: Fix1 in.pdf [out.pdf]
import sys
from PDFRUUtils import *
def Fix1(inPDF, outPDF):
buf=UpdateStreamLengths(file(inPDF,'rb').read())
newbuf=ReplaceXRefsTable(buf, BuildXRefsTable(FindXRefs(buf)))
file(outPDF,'wb').write(newbuf)
if __name__=='__main__':
inPDF=outPDF=sys.argv[1]
if len(sys.argv) > 2:
outPDF=sys.argv[2]
Fix1(inPDF, outPDF)