I'd like to make a PDF file comprised entirely of a folder of images, preferably with no added compression or cruft. Are there any programs that would let me author the PDF file manually via script or API? The important thing is that a) my JPEGs don't get compressed a second time, and b) they're displayed at their native resolution, with no borders. (In other words, I'd like my PDF file to have nothing more than the straight JPG image data centered at 0,0 on each page, sized correctly.) As far as I can tell, most authoring programs recompress the images and add their own layout stuff.
feedback
|
migrated from stackoverflow.com Sep 2 '11 at 19:23
This question came from our site for professional and enthusiast programmers.
|
You say "by hand" which confused some people, I think. You're not actually saying that you want to write raw PDF, right? Below is code that uses the open source iTextSharp library (5.1.1.0). Set the variable
| |||||||||||
feedback
|
|
Creating PDF files by hand is not recommend for the faint hearted! If you really want to try it, we wrote a series on creating PDF files by hand on our blog http://www.jpedal.org/PDFblog/?s=%22Make+your+own+PDF+file%22 | |||
feedback
|