PDF တိုက်ရိုက်ကြည့်နိုင်အောင် Blog ထည့်နည်း
အချက်အလတ်
Blogger / WordPress / Custom Website တွေမှာ လုပ်နိုင်ပါတယ်
အဓိက idea PDF ကို online host (Google Drive / OneDrive / Dropbox) ထားပြီး iframe / embed tag နဲ့ ပေါင်းစပ်ပါ
Mobile / Desktop နှစ်ခုလုံး အလုပ်လုပ်စေချင်ရင် Google Drive Embed နည်း လုံးဝ recommend
1 Google Drive သုံးပြီး Embed လုပ်နည်း
Step 1 Google Drive မှာ Upload
Google Drive သွားပါ
New File upload
PDF ကို upload လုပ်ပါ
Step 2 Share Link ပြင်ဆင်
PDF ကို Right-click Share
Anyone with the link Viewer
Copy Link လုပ်ပါ
Step 3 Embed Link ပြောင်း
Original Link ကို ဒီလို ပြောင်းပါ
Copy code
Original:
https://drive.google.com/file/d/FILE_ID/view?usp=sharing
Embed Version:
https://drive.google.com/file/d/FILE_ID/preview
FILE_ID ကို PDF အရဲ့ unique ID နဲ့အစားထိုးပါ
Step 4 Blog မှာ Embed
Blogger Post / Page HTML mode
ဒီ code ထည့်ပါ
Copy code
Html
<iframe src="https://drive.google.com/file/d/FILE_ID/preview"
width="100%" height="600px" style="border:1px solid #ccc;">
</iframe>
width="100%" blog width နဲ့ fit
height="600px" လိုအပ်သလိုပြောင်းနိုင်
2 PDF ကို Direct Download နဲ့ ပြပါ
ဖတ်ချင်သူ PDF ကို Download လုပ်ပြီး စစ်ဆေးချင်ရင်
HTML Link သုံးပါ
Copy code
Html
<a href="https://drive.google.com/file/d/FILE_ID/view" target="_blank">
PDF ဖတ်ရန် / Download
</a>

No comments:
Post a Comment