Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
We have to combine multiple (typically up to 100) single pdf pages into a single pdf document. Currently, we are using FreePDF for the merge, which has two disadvantages: we always seem to loose a little detail and it takes about a minute to merge 500 files (and we have to merge millions in a limited timeframe).
Is it at all possible to combine pdfs lossless and without a rendering process? I was thinking about a byte array method (we are happy to program something or use a lib).
Other than that, can someone recommend a lib / program that will perform better than FreePDF for the merge operation?
You can achieve that by using iTextSharp. Take a look at this sample: http://gnaresh.wordpress.com/2010/02/12/c-code-to-merge-multiple-pdfs-into-single-pdf/
Or you can use Ghostscript library for that (which would be most reliable).
If you need Ghostscript wrapper for .NET take a look at here: Ghostscript.NET
If you want to do that via Ghostscript User interface (without programming knowledge), you can download Ghostscript Studio (IDE) and use this switches in the Ghostscript Processor to merge multiple PDF's into a single PDF:
! >> interaction-related parameters
-dBATCH ! keep gs out from going into interactive loop reading
-dNOPAUSE ! disables the prompt and pause at the end of each page
! >> device selection parameters
-sDEVICE = pdfwrite ! pdf device
You can use the cpdf command line tools:
cpdf file1.pdf file2.pdf ....... file100.pdf -o out.pdf
No rerendering occurs, and it should be fast and have no problem with large numbers of files.
Free for non-commercial use.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
What is a technique or a tool that I can use to draw schema figures within RestructuredText?
I do not want to import png, jpeg,.. for simple stuff.
What I am looking is, a RestructuredText equivalent for TikZ in Latex to draw, e.g., state machine. It greatly speeds up documentation writing.
I use rst2pdf to generate my documents.
There is nothing built-in to reStructuredText that can achieve this. Personally I would just include the images you need as images. ReStructuredText is designed to be human readable, and including in a reStructuredText document some additional graphics-specific markup language goes against this somewhat (in my opinion). I would keep the markup needed to draw your graphics in separate files in the same directory as your reStructuredText file and have a script automatically generate the images, which are then included in your document.
However, reStructuredText is, of course, extensible, so you can write your own custom directive for drawing charts, similar to siafoo.net. Note that I have never used this, it just looks like a good place to start.
I have ended up with graphviz. To keep it simple (without sphinx), I created a Makefile that compiles dot into svg:
figures/main_components.dot
main.rst
Makefile
Makefile:
generate_figures:
for f in $$(find . -iname *.dot); do \
f_dir=$$(dirname $$f); \
f_name=$$(basename $$f); \
f_name="$${f_name%.*}";\
dot -Tsvg $$f -o $$f_dir/$$f_name.svg; \
done;
In main.rst, I use the svg-s.
.. figure:: figures/main_components.svg
:scale: 50%
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 6 years ago.
Improve this question
I am looking for PDF optimization techniques/pre-processing to convert Print ready PDF to media ready(Press PDF to web PDF).
Target devices for rendering the PDF are iOS and Android
Tools like Adobe Acrobat Pro, provides settings for such tasks like reduction of layers, merging of layers etc.
Expected output PDF shall have only three layers:
1) Text
2) Image
3) Special effects
We can do this by using pre-flight and thus selecting the layers and merge them.
Any steps to do this effectively, i don't want to do such optimization at page level manually.
Can i import layer (say multiple image.tiff) at multiple pages at a single run?
You can use Ghostscript for that.
If you want to do that via Ghostscript User interface, you can download Ghostscript Studio (IDE) and use this switches in the Ghostscript Processor:
! >> interaction-related parameters
-dBATCH ! keep gs out from going into interactive loop reading
-dNOPAUSE ! disables the prompt and pause at the end of each page
! >> device selection parameters
-sDEVICE = pdfwrite ! pdf device
-dPDFSETTINGS=/ebook
Also, take a look at this answer: Optimize PDF files (with Ghostscript or other)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm taking recommendations for either a library in Python or Ruby or a free web service that will simply take a PDF and a pair of image dimensions and spit out an image for each page (jpg or png). Nothing complicated! But it must have point-for-point accuracy to the original PDF. That is all.
ImageMagick uses Ghostscript for PDF files. So skip ImageMagick and use Ghostscript directly. IMHO.
You can use GIMP. Its a very good interface.
Import the pdf file to GIMP
Save the file as .xcf
Operate on the image - edit if required
Export in whatever format you want: .bmp, .jpeg, .png etc.
Try this :) (ImageMagick).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I need to create a pdf file dynamically in vb.net. It needs to contain several images and lines of text.
I am using VS 2003, so whatever solution I use will need to be compatible with the .net 1.1 framework.
The current method I am using is wpcubed, but this requires that all images be converted to bmp format before adding them to the pdf, which can be extremely slow when dealing with a large number of images.
I am aware that there are an awful lot of other 3rd party products that claim to do this, and I have had a search through them. But without registering, downloading, installing and writing code to use each of them in turn, it is very difficult to differentiate between them. So far I have looked into evo pdf and pdfsharp,tallcomponents, dynamicpdf.com but none seem to work with .net 1.1. (Although they don't make this abundantly clear.)
Has anyone else found a method that works and they would recommend (a free one-if possible)?
As this point in time, I would start looking for legacy versions of PDF creation libraries, as it is unlikely any new development will be focused on the 1.x framework. ABCpdf used to support .NET 1.x, but I am not sure you can find an older version.
The PDF specification is open, so you can create your own. the problem is it will takes tons of time. Bearing this in mind, I would look for a PDF library that works, even if it costs money, as the few hundred dollars/euros spent on a component is far cheaper than coding it.
Best sources for open source: SourceForge, CodePlex, Google Code, sometimes Code Project (not as much for complete libraries, however).
There is a version of XSL-FO done for .NET.
Maybe that will do what you want
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Is there a PDF library that one can use to automate creating PDFs from URLs? The current approach I use is to "Print" a page and select a PDF plugin like PrimoPDF to generate the PDF document but I was wanting to automate that.
ABCPDF can do it
wkhtmltopdf generates the most accurate PDFs out of web pages that I have ever found. It renders them in WebKit and converts this to PDF, so the PDF will look exactly like the web page, including all styles and other fancy things.
Just use it like this:
wkpdfhtmltopdf http://www.whatever.com/page.html page.pdf
Depends on what platform you are on
Windows - Websupergoo's ABC PDF
http://www.websupergoo.com/
*nix - Prince XML
http://www.princexml.com/overview/
I've also used ABC PDF (from classic ASP) and found it very good.