Posts

Showing posts with the label PDF

Tweaking fonts, a Linux PDF editor, and more

Image
Baskervville Glyphs Changing the name of a font Continuing to set up the Linux environment on the Chuwi MiniBook X , I needed the Baskerville * font to work with the templates I've lovingly hand-crafted over the years. I installed Baskervville (note the double 'v'), but since the font name didn't match exactly, Libre Office didn't use it, and instead I got some generic sans serif monstrosity. No problem, found an archived tutorial on how to change the name of the font . tl;dr version, using fonttools (which was already installed on this Fedora 40 machine), use ttx <font filename> to build a .ttx XML file for the font, then edit that XML file, using find-and-replace to swap, e.g., Baskervville to Baskerville. Then run ttx <.ttx file> to recompile the file back to a font file. Then, remove the old .ttf (or .otf or whatever) files from $HOME/.fonts and copy the recompiled files in. Done. Installing fonttools If you don’t already have ttx installed, you’ll...

Setting up CUPS-PDF on a Linux instance

I need to print-to-PDF often, and often from encrypted or otherwise protected PDF forms, for e-filing. CUPS-PDF for OS X used to work, but no longer. My solution is a bit ham-fisted, but it works: I setup a simple CentOS 7 instance under VMware and simply print to that. Steps: Download the Installer and Setup CentOS I used  CentOS-7-x86_64-Minimal-1908.iso  under VMware Fusion 8, with a virtual machine setup with 1GB RAM and a 20GB virtual hard drive, to setup an instance named: CentOS 64-bit Printing.vmwarevm I have it setup to use “bridged” networking (at least initially?) so I can SSH into it, which of course requires sshd to be running (and the installation of some basic stuff the minimal install leaves out): # vi /etc/sysconfig/network-scripts/ifcfg-ens33      ONBOOT= yes # ifup ens33 # yum provides "*/ifconfig" # yum install -y net-tools telnet wget vim Install EPEL and CUPS-PDF Browse to  http://download-ib01.f...