PDF compiling