Problems with PDF file

Asked

Viewed 147 times

0

I am showing a PDF file directly in the browser. In Google Chrome, it works perfectly, but if you use Firefox, the PDF is as shown below.

Did you have to put some extra config for Firefox? The PDF file is ok, open directly in the folder.

Controller Code

public ActionResult Boleto(string id)
{
    var arquivoPDF = Path.Combine(MegaBoleto.PastaPDF(), String.Format("{0}.{1}", id, "pdf"));
    if (System.IO.File.Exists(arquivoPDF))
    {
        return File(arquivoPDF, "application/pdf");
    }
    return View();
}

inserir a descrição da imagem aqui

  • In this section there is no problem. It is not the source that is being used in the PDF, tried to change it? Inform how it is generated.

  • @Georgewurthmann PDF is generated by Acbr Boleto, in Fortes Report and export is his standard.

  • Firefox your own PDF visualization plugin just like other browsers. That’s why the problem only occurs in it, trade for another to see if it works, but the ideal correction would be to test other sources, but I don’t know the Acbr Boleto.

  • @Georgewurthmann is being used the source Arial

  • Do you know this library that you are using to generate the boleto? Is it possible to change the source that is used to test? You can post the section that generates the boleto or a similar example?

No answers

Browser other questions tagged

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