Questions tagged [pdf-conversion]

Relating to converting between Portable Document Format and other file formats. Questions asking us to recommend or find a conversion tool or library are off-topic.

This tag is for questions relating to programmatically converting to and from the open standard file format . If a specific conversion is involved, the appropriate tag should also be used: etc.

Conversion solutions may range from complete rasterization (and graphic embedding) to intense . The middle ground generally converts at a high enough level to recognize and use text attributes where possible, falling back to graphic rendering only when necessary.

Questions asking us to recommend or find a tool, library, documentation or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam.

266 questions
1
vote
0 answers

How to change PDF margin while converting .docx to pdf using opensagres

I'm using this code to convert an XWPFDocument to PDF: ByteArrayOutputStream baos = new ByteArrayOutputStream(); PdfOptions options = PdfOptions.create(); PdfConverter.getInstance().convert(xwpfDocument, baos, options); The converter is setting…
Wafula Samuel
  • 530
  • 1
  • 8
  • 25
1
vote
1 answer

How to simulate overprinting for a pdf device using ghostscript

I am converting pdf's to other formats and i would like to have the end output pdf/jpg/png etc to have the same effect as when one selects the simulate overprinting option in the adobe acrobat reader. I went through a similar question at…
Binoy Cherian
  • 364
  • 1
  • 6
  • 23
1
vote
1 answer

Document Conversion Realtime - Implementation Questions

We have a need to convert MS Office documents to PDF real time when someone provides a link to a document after checking whether user is authorized to view the document or not for an intranet portal. We also need to cache the documents based on the…
user243542
  • 241
  • 7
  • 20
1
vote
0 answers

Converting .docx file to pdf using apache poi drops images

I'm having a word document, .docx, containing tables, paragraphs and images. I have been able to successfully convert the file to pdf but the pdf file is missing images. This is a code snippet I'm using: ByteArrayOutputStream baos = new…
Wafula Samuel
  • 530
  • 1
  • 8
  • 25
1
vote
1 answer

Looking for library to convert PDF to PCL

I'm looking for a library to convert PDF to PCL. I also need to put additional instructions (probably @PJL COMMENT statements) We're trying to convert pdfs for input into an automated faxing system. I would like to be able to call this from a .net…
Jeremy
  • 44,950
  • 68
  • 206
  • 332
1
vote
0 answers

Convert a Word Document into PDF in NodeJS

I have a requirement to convert a complex word document into .pdf file with nodejs. I have tried multiple wrapper modules written upon unoconv and unoconv module directly but stumbled upon ENONET error even after trying all the fixes in respective…
Pavan Tolety
  • 163
  • 2
  • 16
1
vote
0 answers

Convert PDF to Docx/Rtf with Css formatting

I want to convert the pdf file into Docx or RTF format with CSS formatting. I tried following libraries: 1. PHPDocx - It is paid. 2. PHPvsWord - The repo is too old. 3. PHPWord - It has issues with table ( Doesn't support table with…
Chinmay Waghmare
  • 5,368
  • 2
  • 43
  • 68
1
vote
1 answer

Apache poi converter is not showing the table borders lines after converting

I am having an issue when using Apache POI to create a DOC file, then convert to PDF. Using Apache POI to create a DOC file works well, it outputs a DOC with text, tables, imagery and shaded headers without problems. If I use IText to create the PDF…
Aqeel Haider
  • 603
  • 7
  • 24
1
vote
1 answer

Input a text file into a program

I'm working on a PDF generator project. The goal is to have a program that takes document files and generate a PDF file. I'm having trouble in finding a way to input a file into the program to be converted. I started out by using the input function,…
1
vote
0 answers

PDF to PNG using ImageMagick start failing randomly in Ubuntu 16.04

I'm running a web app that uses ImageMagick to convert PDFs to PNG. Some weeks ago it started filling the server's HDD, because it stopped deleting the temp files (/tmp/magick-*). We solved that by using a job to clean old temporary files. This…
1
vote
1 answer

Washed out and faded images when generating a PDF within a .net core project

I have a .net core project where I am saving an HTML template string into a PDF via DinkToPdf. Whilst I am successfully generating a PDF file, I am seeing some odd behaviour around images where they are appearing washed out/faded. Please note I do…
Ben Cripps
  • 31
  • 1
  • 5
1
vote
1 answer

How to create a PDF file from a dict() data in Python

I have got a Dict from a .txt data, and I want to create a PDF file with this data. How can I create it?
R.Aslan
  • 23
  • 1
  • 7
1
vote
2 answers

Convert html table into .pdf and send in Email using .Net mail class "smtp"

I have a email that's send out as a Receipt to a payment. This email contains a HTML Table that contains all the information.It writes that table as a body of the email. protected void btnSendEmail_Click(object sender, EventArgs e) …
Simple Code
  • 558
  • 9
  • 24
1
vote
1 answer

Itext7: render PDF page to image

Can I render a PDF Page to a real image object (e.g. BufferedImage) using IText 7?
Marco
  • 11
  • 2
1
vote
0 answers

Convert Pdf to Pdf/A from Adobe Acrobat Professional XI/DC SDK

I've made a small app in C# which converts PDF files to PDF/A with the Adobe Acrobat SDK. I've used the SaveAs JavaScript function, included in the SDK, this way: var pdfDocument = new AcroPDDoc(); pdfDocument.Open(fileInfo.FullName); object…
Speuline
  • 201
  • 2
  • 15