Questions tagged [pdf-writer]

58 questions
0
votes
0 answers

how to fix this Access violation reading location error

I was using a library called PDF-Writer for C++ (https://github.com/galkahana/PDF-Writer) and I was writing some code like this: void app::saveaspdf() { PDFWriter* pdfWriter = new PDFWriter(); PDFPage* sheet = new PDFPage(); …
0
votes
1 answer

Problem with PdfFileWriter of PyPDF2: addPage() missing 1 required positional argument: 'page'

I need to write in a new PDF the content of each page. In 'curr_page' i am saving the PageObject of each Page, but when i try to write it in a new one i receive the error of that "addPage needs an argument". But i am giving it the argument, which…
0
votes
1 answer

Missing PDF pages when converted from HTML

When i try to convert Html to Pdf using itext. It is only showing blank pages, pdf content is missing.please help Document document = new Document(); PdfWriter writer = PdfWriter.getInstance(document, new…
0
votes
1 answer

TypeError: 'PdfFileWriter' object is not callable

I am trying to extract specific pages from a PDF file, and save it in a different file name. Followed the codes provided here : https://www.youtube.com/watch?v=W6Gt57b3Pp4&t=219s from PyPDF2 import PdfFileReader, PdfFileWriter pdf_file_path =…
0
votes
0 answers

ă ș ț characters missing from pdf generated from html with PdfWriter

I am trying to convert some html content to a pdf using the itext PdfWriter, like this: Document document = new Document(); ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); PdfWriter writer = PdfWriter.getInstance(document,…
aniri
  • 1,831
  • 1
  • 18
  • 28
0
votes
0 answers

PDF file contents write into it after creating the PDF on Azure Storage

I have created a pdf file on azure storage and now i want to write few contents into the pdf file . Is it possible so? If yes kindly help me in this regard Thank You if not TempBlob.Blob.HasValue() then exit; WMSMgmt.FindSet(); …
0
votes
1 answer

Ghostscript makes text unsearchable after converting to pdf

Starting with a pdf file, in which all texts are searchable, I transform it to a new ps file with this command: gswin64c -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ps2write -dDOPDFMARKS -dLanguageLevel=2 -sOutputFile="new.ps" "old.pdf" After that I…
0
votes
1 answer

Getting "java.lang.RuntimeException: The document is not open", when the Document object is open

I am trying to add a page number/page count to my pdfs. The way that we are doing this is to create a second copy of the report to get the page count, and then iterate through that loop to write the numbers back onto the first report. The report…
Charles
  • 355
  • 1
  • 2
  • 12
0
votes
0 answers

Why my pdf is coming in potrait mode after merging with existing pdf using itextSharp?

I have written this code to merge insert a pdf at page 2 of an existing pdf. It works. But the problem is that the inserted pdf is in landscape mode i.e. size is coming different but actually it is in portrait mode but after inserting it comes in…
Stacky
  • 57
  • 1
  • 8
0
votes
1 answer

Java Mail - Attach multiple pdf file and send mail

I want to attach multiple pdf files (According to the number of receipt, for example if 2 receipt is available, then two attachment should be created) and send a mail using javamail. I am able to attach single file and send an email, but When I am…
0
votes
0 answers

PdfWriter class does not create any pdf

Here is my code. It's working well, but in my android phone there is no pdf file. It shows path storage/emulated/0pdfcc.pdf in toast message, but in my phone there is no file like this. What can I do? Thanks in advance public void PdfCreate(View…
0
votes
1 answer

How could I define the chunk's length in a PDF generated from an HTML?

I'm managing to generate a PDF file from an e-mail, which I'm actually retrieving through MailKit. There is no actual problem on generating the pdf file itself (I'm providing to the PdfWriter instance a clean, revamped and ready-to-go html provided…
Gonzo345
  • 1,133
  • 3
  • 20
  • 42
0
votes
1 answer

Empty content on the downloaded PDF using itextsharp in WebAPI 2 response

public IHttpActionResult DownloadPDF() { var stream = CreatePdf(); return ResponseMessage(new HttpResponseMessage { Content = new StreamContent(stream) { Headers = { ContentType =…
Sabarish
  • 59
  • 1
  • 6
0
votes
1 answer

Enable HTML anchor tag in pdf generator (FPDF)

I would like to insert a link into a PDF generated with FPDF. This is the current state of my code: $link = 'www.blablabla.de'; $pdf->MultiCell("Please click the following link: Click. Thank you!"); I've also tried it in…
Codehan25
  • 2,704
  • 10
  • 47
  • 94
0
votes
0 answers

Retrieving french characters from xml to Java

We have a xml language file with French and English elements. French characters are coming with random text like é from xml to Java. I tried converting string to byte array with utf-8. These french elements i am using in PDF headers.I have…
user1770589
  • 375
  • 1
  • 6
  • 19