Fixed build without PDF support

Change-Id: I9f0a7f72b29fcc2a8f3fc23bd1113e8b5de223f1