Monday, September 29, 2014

Finding Type 3 fonts in PDFs

It can be painful to fail the IEEE PDF check because of wrong fonts that made it into your PDF file. Here's a little shell script that helps to locate where Type 3 fonts are hiding.

#!/bin/bash

 for i in `seq 1 1 \`pdfinfo XXX.pdf|grep 'Pages'|cut -d: -f2|sed -e 's/ //g'\``
 do
   echo ""
   echo Page $i;
   echo "font name                            type              emb sub uni object ID"
   echo ------------------------------------ ----------------- --- --- --- ---------
   pdffonts -f $i -l $i XXX.pdf|grep 'Type 3';
 done

Tuesday, August 19, 2014

Multiple desktops in Windows 7

This small tool from Microsoft allows you to have 4 virtual desktops. There are also several alternatives out there in the open source world for more (and more flexible) virtual desktops.

Tuesday, July 23, 2013

Eclipse startup error with TFS plugin

Sometimes Eclipse will produce the dull error message "An error has occurred. See the log file...". On my system this is caused by the TFS plugin misbehaving. 


An easy way to recover this is to navigate to the directory ${workspace}\.metadata\.plugins\org.eclipse.core.resources and delete the file .snap.

Tuesday, April 16, 2013

Saturday, March 19, 2011

HDD backup with rsync

Just switched from Windows 7 built-in backup to rsync (using cwrsync).

Initially, backing up 88k files, 212 GB, to an external HDD (connected via USB2), took 9h 26 mins (383 MB/min).

Running rsync again (only a few browser-related files had changed), took 2h or so.

Sunday, January 2, 2011

Making PDFs compatible with IEEE style guides

I had a lot of trouble embedding the Helvetica font into my PDF. Here's how I solved it (from here); instead of WinEdt, I changed the ps2pdf settings in GhostView.

At this moment (April 2006) it is not possible to make PDFLaTeX embed these fonts (aka the Base-14 fonts) if they are used in external images. PDFLaTeX will embed these fonts only if they are used in the document itself.

It is possible however to tell PS2PDF to embed the fonts:

  • Open WinEdt
  • Select: Options, Execution Modes
  • Select ps2pdf
  • The Command Line Switches for gswin32c.exe are
    -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -r600 -dCompatibilityLevel=1.4 
    Add the following switches to this line:
    -dPDFSETTINGS=/printer -dMaxSubsetPct=100 -dSubsetFonts=true  -dEmbedAllFonts=true 
From now on PS2PDF will embed all fonts.