Convert PDF to Images [duplicate] - pdf

This question already has answers here:
How to convert PDF to Word using Acrobat SDK? [closed]
(3 answers)
Closed 8 years ago.
Can some one tell using a small sample code on how to convert a multipage PDF file to multiple images with the option to convert to Colored Image (.png) or Grayscale Image (.tif) using Adobe Acrobat XI SDK in C#?

Try PdfThumbnailComparer.Lib. It uses Adobe Acrobat SDK behind the scene to produce images from PDF files" new PdfToImage { PdfFilePath = "...path to pdf..." }.PdfPageToPng();

Related

MS Word: Preserving vector graphics (SVG) when saving document as PDF [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
Microsoft recently added SVG support to Word 2016. But when trying to save a document containing a SVG vector graphic as PDF the graphic will be converted to a raster image.
I tried to change the Image Size and Quality Options (-> "do not compress images in file" and "high fidelity") but this had no effect whats-o-ever.
My second approach was to use the "Microsoft Print to PDF"-printer but this didn't preserve the graphics either.
Is there a way to preserve the scalability of my graphics when saving to document as pdf? Is there somewhere an option in the settings that I haven't discovered yet?
If this is only a SVG issue: Which other vector graphics format will work better?
In response to your final question:
"If this is only a SVG issue: Which other vector graphics format will work better?"
For years the only vector format that Word supported was Microsoft's proprietary .emf file format. If you encounter further issues, you can always try converting your .svg to .emf. Inkscape can export as .emf, and in my experience it's a much more accurate conversion than Adobe Illustrator.
Incidentally, the workaround that Andrew posted above works by converting your clipboard data into an .emf file. However there are a few times when exporting from Inkscape directly would be preferable, for instance when you want to preserve a buffer of blank space around your graphic (using the clipboard will not select blank space).
Microsoft seems to have improved SVG support in Word. SVG vector graphics are now perfectly preserved when saving the document as PDF.
(I'm using Office version 1806)
I have Adobe Acrobat X Pro 10.1.16.13 installed, which gives me a Save as PDF file option in Word 2016 that does put the SVG graphic into the PDF file as a vector graphic.
I user Insert|Picture to get the SVG graphic files into word.
A 70K SVG file, for example, slows down the editing in Word significantly, so I put placeholder JPG or PNG graphics in the Word file until the final draft, then I replace them with SVG files as the last step before saving as PDF.
Ran into this issue today also. SVG seems to be broken in Word. One way I have found to preserve the scalability of graphics in PDF output from Word is:
Open the SVG in Inkscape
Select all and Copy to Clipboard
Using Paste Special in Word (Alt+E,S) paste it into the document as a "Picture (Enhanced Metafile)"
I believe this also works in previous versions of Word at least as far back as 2013 and 2010.
I just solved the problem by doing export directly from OneDrive online. Probably it happens because online word version is html-based and it has better treatment for svg.
I solved this yesterday and hope the answer works for you.
The graphic was cropped at first in your Word (my version is 2019)? In my case, if I insert the SVG graphics without cropping, the SVG graphic works well in PDF. While if the SVG graphic was cropped before converting to the PDF, it will collapse. It has nothing to do with the resolution.
Besides, my SVG graphics were generated by Python. If you need to crop the images to adjust the size, "Inksacpe" software is a good choice.

PDFBox Convert PDF to lower version

I have a program that outputs a PDF file using PDFBox (It merges a bunch of PDFs using PDFMergerUtility).
I need to use Acrobat 5 to read that PDF, but in some pages i get Error proccesing page. A drawing error ocurred.
I cant update my acrobat so, there is a way to downgrade the PDF using PDFbox?

Convert pdf document to jpeg using LEADTOOLS and PDF-TOOLS

We have pdf documents (source: camera or scanner) that we want to convert to jpeg.
We use LEADTOOLS and PDF-TOOLS(in two separate programs) to convert these pdf files to jpeg files.
Both these tools use the default DPI of 150 irrespective of the DPI of the source pdf file.
We would rather like this value to be taken from the source pdf file.
For example: Adobe Acrobat software recognizes the source pdf file DPI and uses the same to create the jpeg file.
Is there some way we could achieve the same using the LEADTOOLS and PDF-TOOLS by determining the DPI of the source pdf file?
This feature was added to v19 of LEADTOOLS a few months ago. You can now extract images from PDF pages while preserving their original pixel dimensions using the following members of the Leadtools.Pdf.PDFDocument class:
ParseDocumentStructure method.
Images property.
DecodeImage method.
Furthermore, if the image is stretched inside the PDF page, you can detect that by examining its display size in the PDF page using the Leadtools.Pdf.PDFObject.Bounds property.
There's a dedicated demo for the PDFDocument class and related objects installed with LEADTOOLS 19 in these folders:
Examples\DotNet\CS\PDFDocumentDemo
Examples\DotNet\VB\PDFDocumentDemo

Reformat image format in PDF

I got issues in rendering a couple of images and texts in PDF in Telerik PDF viewer - according to Telerik's documentation it seems those texts/images formats are incompatible.
Are there ways to convert existing images in a PDF and replace it back to the PDF so to make the file compatible to the Telerik PDF viewer?
Many thanks

How to compare two pdf files? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Tool to compare large numbers of PDF files?
I have generated two pdf files
1.MNTR305K.PRT.pdf (1862 pages) of 2760 KB
2.MNTR305K.PRT.pdf (1862 pages) of 7345 KB
I saw each pdf file by comparing it's content and fonts. I found everything is same. I don't know why the why the second file took more size than the first one.Does any one help me how to find the difference.
Thanks in advance
Probably down the way the PDF creator is storing/compressing the page data. Have you had a look inside at the structures with Acrobat Pro?
Acrobat has a "space auditor" that can tell you if the size increase is caused by images, fonts, format overhead, etc. Open the "PDF optimizer" and click on the 'Audit space usage..." button.
I have generated two pdf files
What are you using to generate the PDF?
If you are using iText api, then;
Always use setFormFlattening before closing the stamp.
If you are copying / merging pdf using iText then use freeReader before closing the reader.
You can use i-net PDF content comparer to compare 2 PDF files. It's specifically for finding "hidden" differences that are hard to make out with the naked eye.
BeyondCompare work for you?
http://www.scootersoftware.com/