I extracted the PDF info!

assetutil -n Clarus -o ~/Desktop/clarus.car /System/Library/PrivateFrameworks/PrintingPrivate.framework/Versions/A/Plugins/PrintingUI.bundle/Contents/Resources/Assets.car

perl -ane 'BEGIN { $seen=0; }
if($seen) {
print $_;
if(/%EOF/) { $seen=0; }
} else {
if(/%PDF/) { $seen=1; print("%PDF-"); }
' < clarus.car > clarus.pdf
(wish Markdown worked!)

@clith @blog Very nice! I'd have thought what I did (just using a hex editor to extract everything between %PDF and %EOF) was the same, but I guess not

@shadowfacts @block
It took me a few tries before I realized there was a “-“ after the %PDF!

Sign in to participate in the conversation

The original server operated by the Mastodon gGmbH non-profit