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
0
votes
1 answer

is there a method to read pdf files line by line?

I have a pdf file over 100 pages. There are boxes and columns of text. When I extract the text using PyPdf2 and tika parser, I get a string of of data which is out of order. It is ordered by columns in many cases and skips around the document in…
0
votes
1 answer

Conversion is not happening in Nreco for Chinese currency

I am using NRECo to convert HTML string to Bytes for pdf conversion. Everything works fine but in a string, When I insert Chinese currency symbol (¥) but after conversion, I am seeing Â¥. How do I need to solve this issue? CNY(¥) Cost converts to…
Praveen kumar
  • 225
  • 1
  • 6
  • 18
0
votes
1 answer

Convert excel print page to pdf and send to email on the print page

I'd like to make a VBA code in excel but I'm stuck. I want it to take my worksheet where I have several pages to print (50 pages in one worksheet). On every print page there is a sum and if that sum is greater than 0 I want to convert that page to…
Jacob
  • 3
  • 2
0
votes
0 answers

Printing Blank data when it has more data then a4 size

When my div has more data then a4 size page it generates blank PDF . although it is working fine when it has few data(under a4 size) I have tried some other way but it doesnt print css $scope.ConvertToPDF = function () { debugger; …
0
votes
2 answers

Error: Command failed: gm convert pdf-image conversion

I am trying to convert pdf to images in node.js app. For that I am using pdf-image npm module. I googled it and installed pdf-image npm module and graphicsmagick using apt-get install graphicsmagick in linux os. let pdfImage = new…
Saurabh Sharma
  • 804
  • 6
  • 16
  • 42
0
votes
1 answer

Pdf to image conversion using PdfBox

When PDF(fillable) is converted to Jpeg using Pdfbox.The tick in checkbox is converted to a box character WARN [org.apache.pdfbox.rendering.Type1Glyph2D] No glyph for code 52 (a20) in font ZapfDingbats public static void main(String[] args)…
PDS
  • 54
  • 12
0
votes
1 answer

Can i convert a pdf to low size pdf without losing the exact color profile using ghostscript

I am using the below settings to convert a high resolution pdf to a low dpi but I can see that the color changes in the output file. "-sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dQUIET -oC:\test5\pdfTestFinalToPdflow.pdf…
Binoy Cherian
  • 364
  • 1
  • 6
  • 23
0
votes
0 answers

How to convert saved jpg image to pdf to view image in adobe reader in android

I have save jpg file to internal storage code given below; Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); File folderPath = new File(Environment.getExternalStorageDirectory() + "/OCR"); if (!folderPath.exists()) { if…
user10120929
0
votes
1 answer

Python2.7 - Making a GET and POST request to https://www.aconvert.com/pdf/ with Python

Good Evening, I've been researching around to understand how GET and POST requests work using the requests module. In the past I've made .get and .post request, however, it's still a brand new concept to me (along with web scraping). I've been…
Darican
  • 29
  • 5
0
votes
1 answer

How to read table?

I have a time table in PDF file. (1) (2) (3) 09:00 10:30 11:30 Monday 12C 11B 10A Tuesday 10K 10K 9A Wednesday 7A Thursday 7B 7B Friday 6A …
barteloma
  • 6,403
  • 14
  • 79
  • 173
0
votes
1 answer

org.apache.poi.xwpf.converter.core.XWPFConverterException: java.lang.NullPointerException (Java)

I am getting conversion error while converting docx to pdf. This is my code: private File convertFileToPdf(MultipartFile file) { try { File docFile = new File(file.getOriginalFilename()); String extension = …
0
votes
1 answer

how to create type 3 glyphs in postscript

%%LanguageLevel: 3 8 dict begin /FontName /T3_414 def /FontType 3 def /FontBBox [ 0 0 1 1 ] def /FontMatrix [0.011368 0 0 0.011368 0 0 ] def /Encoding 256 array def 0 1 255 {Encoding exch /.notdef put} for Encoding 97 /g7516 put /BuildGlyph…
Kbstar
  • 15
  • 8
0
votes
1 answer

Converting html to PDF to using iText - pass external CSS as a string?

I'm following the example specified in this location to convert an existing HTML to Accessible PDF. https://developers.itextpdf.com/de/content/itext-7-examples/itext-7-converting-html-pdf/pdfhtml-accessible-pdf-creation Is there a way to pass CSS as…
RKodakandla
  • 3,318
  • 13
  • 59
  • 79
0
votes
1 answer

SDKs or Commandline Tools to Convert DOC and TIFF to PDF in VB.NET

I've been working on a project that converts several file formats to a PDF in VB.NET/C#. The specific files are DOC, TXT, JPG, TIFF, HTML. Actually I already have a solution for DOC/TXT to PDF using Bullzip PDF Printer by sending the files to the…
cubski
  • 3,218
  • 1
  • 31
  • 33
0
votes
1 answer

Image in PDF file

I trying to display image in pdf when click on print then pdf file is open i try this on button click Dim datastram = New StringBuilder("") Dim bodystringmain As StringBuilder = New StringBuilder() Dim readerstream = New…
user 123
  • 41
  • 2
  • 13