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)
Related
Closed. This question is not about programming or software development. 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 11 hours ago.
Improve this question
I truly need help in Adobe Illustrator PDF. I have many small PNG files saved from lost vector line drawings.
The problem is that PDF scales up any image file (JPEG or PNG alike) when saved in Adobe Illustrator. Although such PNG images are as big as 1920 pixels width size, they are about 50 KB. But when exporting a PDF file, the PDF file becomes almost 9 MB. Is there a way to configure the Illustrator PDF to not alter the image type or size, but rather embedding it as is? I also don't want it linked to an outside file, but rather embedded as is, without scaling it up to 9 MB.
I looked through the PDF settings, but there isn't anything to give me the option to embed images without scaling up. Even setting it to 72 ppi doesn't make a big difference.
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 8 years ago.
Improve this question
We used Adobe inDesign to design story books. We need both the PDF file as well as epub file. Since we all view in PDF during the process, the final clear product in PDF, when we export as epub file, it's huge. It all messed up the original design. What can we do?
Why did it happen?
I've worked on ONE project going from InDesign to ePub about two years ago - and you are right it is a mess. It didn't understand which local overrides to keep and practically every paragraph had style="localoverride1 localoverride2 substyle3 etc" in it. It was a mess to sort and clean up.
After that miserable experience we've found that it is better to view PDF and ePub as two separate products. Our workflow takes source XML and goes EITHER into InDesign OR through an XSLT to make an ePub. We no longer use InDesign to attempt to make ePubs - with an XSLT there is a LOT more control over the look and feel of the final product.
However if you are dead set on using InDesign - I've heard that it does fixed layout "epub" fairly well (basically it ends up being a bunch of images - it's not reflowable).
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.
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
I often work with 3D CAD models, which I receive as SolidWorks or PDF files. I need to turn them into black & white line art, like you'd find in a patent application. (In fact, exactly like what you find in a patent application!)
Acrobat-9 allows me to rotate & scale the models, so I can print them with reasonable resolution, but the rest of my drawing toolchain deals with SVG files, while all I can get out of Acrobat is bitmaps. (I also make models from scratch in Blender, and make line drawings using rendering procedures there, but that also produces bitmaps.)
Is there some way to get from a 3D view to an SVG picture (preferably with relatively simple Bezier curves and scaled line weights)?
(As an example, imagine that I have a 3D model of a cube. I position it as desired, then (somehow) convert it to an SVG image with several straight lines where the edges are, with the line weights scaled according to the distance between the edge and the camera/viewer.)
if you have rendered views as PDF files, you can use inkscape's command-line tool to convert PDF to SVG, as discussed on this post.
case there are no rendered PDF's available, you can export PDF snapshots from within CAD prior to converting them.
you can also try other converters made for this purpose, like verydoc or PDF-tron.
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 7 years ago.
Improve this question
I'd like to embed a PDF file viewer in a window of my planned-to-be open-source application. I don't want to release my application on GPL though, and most of open-source PDF libraries are on GPL (poppler, ghostscript, muPDF).
Is there a PDF viewer library that would be on a non-viral open-source license?
Thanks,
It seems that there is a new BSD-licensed contender: PDFium.
IANAL. Blah blah blah.
Using GhostScript by shelling out to a command line will not require you to change your licensing in any way. Batch files used to call GhostScript aren't automagically GPL'ed.
With GPL, I'd always understood that it boiled down to "Separate process? Separate license!".
So you just have GS whip up a relatively hi DPI version of the PDF page in question, and let the user pan and zoom around in that. Because GS IS in a separate process, you could fire off additional page requests in the background so the user won't perceive a delay when paging back and forth. GS takes a page range as one of its conversion parameters.
What you couldn't do is generate an image of a small part of an individual PDF page at high DPI/zoom. IIRC, you have to render the whole page.
If your application is open source and free then you should consider the option to host Adobe Reader ActiveX control (which requires to have Adobe Reader to be installed), this behavior would be the same as embedded Adobe Reader in Internet Explorer or Firefox browsers.
Lot of users have Adobe Reader or Foxit Reader installed on their computers already.