How to get an unexplained PDF on the Web using PHP

0

Well, I'm trying to make use of a PDF through your link. I'm using a library called PDF Parser. The problem is that PDF does not have a direct link. When accessing the link, a key is passed as a parameter and it returns the PDF.

Here's the link: link

In my code I'm doing:

$pdf = $parser->parseFile('http://diario.ac.gov.br/download.php?arquivo=KEQxQHI3IyEpRE8xNDY4NjkxNjk5OTQwMi5wZGY'); 

And it gives connection restarted. However, if I use a direct access link to the PDF, it works normally, as follows:

$pdf = $parser->parseFile('http://cnd.fgv.br/sites/cnd.fgv.br/files/teste_2.pdf');  

How do I get this PDF?

    
asked by anonymous 19.07.2016 / 00:57

0 answers