Is there any way I can access a pdf from the source code?

Asked

Viewed 20 times

0

My question is simple: is there any way I can download a pdf file from the source code of the page? The following is a real example extracted from a website and I would like to know if there is any way to access the pdf (1d026fee0f3144034bd87b6318fd083f.pdf) through the information provided.

            JsonArquivo  = {"id_arquivo":"1843","codigo":"F54Q21","data":"2020-10-28 09:30:00","prazoDownload":"2020-10-28 11:00:00","prazoEnvio":"2020-10-31 11:10:00","prazoEnvio":"2020-10-31 11:00:00","file":"1d026fee0f3144034bd87b6318fd083f.pdf"} 
            </script><button 
            class="btn btn-success downloadFile"
            style="display:none"
            data-dados='{"id_arquivo":"1843","codigo":"F54Q21","data":"2020-10-28 09:30:00","prazoDownload":"2020-10-31 11:00:00","prazoEnvio":"2020-10-31 11:10:00","prazoEnvio":"2020-10-31 11:00:00","file":"1d026fee0f3144034bd87b6318fd083f.pdf"}'
            data-id_arquivo=""1843""
            id="downloadFile-1843"

Thanks in advance for any reply.

  • 1

    Your question is vague as to the resources or language you want to extract/have available to you, but assuming you do, have a workable solution available on github, take a look https://git.macropus.org/2011/11/pdftotext/example/

  • Another one with Javascript is also available here https://hublog.hubmed.org/archives/001948

  • After that I suggest you read the link to help you formulate a good question and get the help you need from the community. https://answall.com/help/how-to-ask

No answers

Browser other questions tagged

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