public Configurator fromAsset ( String assetName ) { try { File pdfFile = FileUtils . fileFromAsset ( getContext ( ) , assetName ) ; return fromFile ( pdfFile ) ; } catch ( IOException e ) { throw new FileNotFoundException ( assetName + " does not exist." , e ) ; } }
Use an asset file as the pdf source