Questions tagged as 'pdf'

1
answer

Itextsharp - Name of PDF depending on variable

I currently have a code with iText to create PDF with a fixed address in this case: PdfWriter writer = PdfWriter.GetInstance(doc, new FileStream("C:/Atreus-Export/presupuesto.pdf", FileMode.Create)); My question is how can I make the PDF na...
asked by 04.09.2018 / 14:34
1
answer

Problems downloading pdf by Chrome PHP

At the moment of selecting a pdf, the chrome browser visualizes it well, but if I want to download it, it does not work for me, it downloads a file with the name of the page that is ver.php index.php var listar = function(year) {...
asked by 30.04.2018 / 20:23
1
answer

FPDF throws errors in 000webhost

It worked in a localhost XAMMP, I put it in a free hosting 000webhost to try it Warning: A non-numeric value encountered in /storage/ssd2/023/3036023/public_html/pdf/fpdf/fpdf.php on line 580 Warning: A non-numeric value encountered in /stora...
asked by 27.09.2017 / 19:58
4
answers

Laravel Take PDF of a record not whole table

I have a table that contains the records in the following way and I want the data it contains to be printed in a PDF from registration to registration, not to print all the records, that is why a button is generated in the table corresponding to...
asked by 21.09.2017 / 12:44
1
answer

Search within a pdf with Python

I read an encrypted Pdf and when looking for the list below it tells me that it does not find anything, it seems to me that my regular expression is wrong import PyPDF2 import re file = open('imagen.pdf', 'rb') pdfreader = PyPDF2.PdfFileReade...
asked by 30.05.2017 / 18:51
1
answer

How can I pass a string of bytes to PDF with Python?

I am connecting to an API in which you return a PDF in bytes format and I want to know if there is any simple way to format it in PDF to be able to download it. My problem is that it returns a string of data in this format: b'%PDF-1.7 \n%\x...
asked by 22.02.2018 / 09:38
1
answer

Problem with tcpdf - Import an image

I am creating a pdf from html require_once('tcpdf/tcpdf.php'); ..... $content .='img src="/img.png" width="50" height="50">' $obj_pdf->writeHTML($content,true, 0, true, 0); $obj_pdf->Output('sample.pdf', 'I'); But this error...
asked by 09.08.2018 / 21:31
1
answer

Show a blob in firefox

I'm trying to show a PDF on an HTML page but it does not show anything in firefox, I tried it in chrome and there it shows, using the following code. <div ng-if="downloaded"> <object ng-bind="pdfcontent" data="{{pdfcontent}}...
asked by 30.08.2017 / 23:32
0
answers

FileOutputStream error when generating a PDF on NetBeans

I am working on a project where I use itext and fileoutputstream to generate a pdf , but when I import the library java.io I get an error:    can not find symbol class FileOutputStream How can I correct this error? A...
asked by 31.10.2016 / 07:03
1
answer

Generate PDF of a post on Django

I have a Blog in wordpress and I'm migrating Django, I have a plugin installed in wordpress that allows you to generate a PDF of a post and I want to pass that functionality to Django. After a lot of searching and several tests, I use djan...
asked by 12.04.2016 / 02:21