How to open pdf that is located in a folder in the project in html?

Asked

Viewed 756 times

2

I’m trying to open a pdf file that is located in a folder within the project, but it’s not working.

I followed some suggestions and tried that:

<a href="../../media/Novo_Documento_2017-09-13_18.19.55_20170913182145649.pdf"   target="_blank">pdf_001</a>

What I would like to do is to open the pdf that is located in this media folder in the browser.

  • 1

    puts the code of how you’re doing, and what’s going on.

  • 2

    Welcome to Stackoverflow in English! Please explain the problem further, and if possible include a code example that reproduces what is happening ( http://answall.com/help/mcve. ), as your question is not noticeable. See Help Center How to Ask ( http://answall.com/help/how-to-ask ).

1 answer

0

I think that’s what you want, to open the pdf directly in the browser!

<iframe src="../../media/Novo_Documento_2017-09-13_18.19.55_20170913182145649.pdf" width="600" height="780" style="border: none;"></iframe>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.