title: How to use Cordova Camera Picture in PDFMake?
body: <p>I am building Ionic Cordova App in Angular. I have to create a PDF with the form values and pictures. I am using Cordova Camera to get the image which works fine. </p>
  
  <p>Once I get the image, how should I use it in my PDFmake without converting to Base64? Base64 is extensive and breaks on older devices.</p>
  
  <p><b>Camera Get Picture</b></p>
  
  <pre><code>
    takePicture() {
      const options: CameraOptions = {
        quality: 95,
        destinationType: this.camera.DestinationType.FILE_URI,
        sourceType: this.camera.PictureSourceType.CAMERA,
        encodingType: this.camera.EncodingType.PNG,
        targetWidth: 400,
        targetHeight: 400,
        saveToPhotoAlbum: true,
        correctOrientation: true
      };
      this.camera.getPicture(options).then((imageData) =&gt; {
        const sourceDirectory = imageData.substring(0, imageData.lastIndexOf('/') + 1);
        const sourceFileName = imageData.substring(imageData.lastIndexOf('/') + 1, imageData.length);
        this.selectedImage = this.webView.convertFileSrc(imageData);
        this.photos.push({
          image: this.selectedImage,
          rawImage: sourceFileName,
        });
        this.storage.set('photos', this.photos);
        console.log('Copying from : ' + sourceDirectory + sourceFileName);
        console.log('Copying to : ' + this.file.dataDirectory + sourceFileName);
        this.file.copyFile(sourceDirectory, sourceFileName, cordova.file.dataDirectory, sourceFileName).then(function(success) {
           const fileName = cordova.file.dataDirectory + sourceFileName;
           console.log(fileName);
        }, (error) =&gt; {
           console.dir(error);
        });
      }, (err) =&gt; {
       // Handle error
       console.log('Camera issue:' + err);
      });
    }
  
  </code></pre>
  
  <p>With PDFmake, I am able to make the PDF with form values but pictures only show if I am using base64. I don't want to use base64.</p>
  
  <p>I want to store the captured pictures in app and then use the local files.</p>