Kamis, 14 November 2019

Cara Embed PDF di Google Drive ke Blogger

Berikut cara embed file pdf yang disimpan di google drive ke blogger :
  1. Sign in ke account google (drive dan blogger).
  2. Upload file pdf ke google drive.
  3. Share file tersebut ke level selain private (any one with the link atau public on the web)
  4. Buka file pdf tersebut sehingga terdapat menu yang bisa dipilih. Pilih File ~ Embed this PDF file
  5. Copy link yang muncul.
  6. Buat post di blogger.
  7. Pilih mode penulisan blog menjadi  HTML.
  8. Paste link yang sudah dicopy pada langkah 5.
  9. Klik Publikasikan.
  10. Klik Lihat Blog untuk melihat hasilnya.

Untuk menghilangkan bagian sebelah kiri pada tampilan embeded-nya, maka code iframe-nya menjadi berikut :

<iframe src="https://docs.google.com/viewer?srcid=[ID FILE GOOGLE DRIVE]&pid=explorer&efh=false&a=v&chrome=false&embedded=true" width="640px" height="480px"><iframe>

Untuk bagian [ID FILE GOOGLE DRIVE] pada code diatas, silahkan lihat link yang ada ketika kita setting sharing file di google drive. Copy huruf-huruf yang berada diantara .../file/d/ dan /edit?usp...


Sumber : The Tech Zone dan Google Group