Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
2.6k views
in Plugins by

For uploaded PDF files a link like this is returned:

domain.com/?qa=blob&qa_blobid=17474948105245553660

To embed a PDF, it would be possible to use:
<embed src="pdfFiles/interfaces.pdf" width="600" height="500" alt="pdf" pluginspage="http://www.adobe.com/products/acrobat/readstep2.html">

The embed plugin of Noah could be extended for PDFs, but the problem would be, that uploaded PDFs wouldn´t be recognized, because of the link URL, true?

The same problem seemed to happen to uploaded images (http://www.question2answer.org/qa/17223/use-q2a-embed-plugin-noahy-embed-uploaded-image-with-blobid) although in the newest version of the embed plugin it works fine for uploaded images. So somehow it has been solved there?

Any ideas how the PDF-Upload and an easy embed of PDFs in the posts could be done?

 

related to an answer for: Why can't I upload a PDF document?

1 Answer

0 votes
by
edited by

Update, plugin now available: http://www.question2answer.org/qa/33644/pdf-embed-now-possible-with-extended-q2a-embed-plugin

 

---

Add a .pdf extension in the end of your blob URL.

e.g.

<embed src="domain.com/?qa=blob&qa_blobid=17474948105245553660.pdf" width="600" height="500" alt="pdf" pluginspage="http://www.adobe.com/products/acrobat/readstep2.html">

This should work.

by
1.
when i put the url "domain.com/?qa=blob&qa_blobid=17474948105245553660.pdf" in the browser directly, I am asked to download the PDF, but if I use it like you described only the following message is displayed: a plugin is needed to display the content.
any idea why this is not recognized?

2.
how could this be automated when uploading the pdf?
might be acore hack necessary?

3.
have you updated the embed plugin of noah?
https://github.com/NoahY/q2a-embed
here it seems like PDF is still not supported... maybe you could send him a pull request for your changes?
...