Login  Register

Re: convert multilayer tif to pdf files

Posted by Tiago Ferreira on Jun 07, 2008; 8:06pm
URL: http://imagej.273.s1.nabble.com/convert-multilayer-tif-to-pdf-files-tp3696001p3696003.html

John,

If your dealing with large images (eg, 3550x1775pixels) the 'fit in one image' will not be respected *if* you tick the 'print image's size or title'.
You will have to resize it before the conversion if these headers are important for you.

If you want, have a look at this quick&dirty fix:
PDF_Writer.java

You could also have a look at CUPS-PDF, that would allow you a very efficient batch-pdf conversion from the IJ print command:

CUPS-PDF page:
<http://cip.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/>

If you are using a mac you can find an installer here:
<http://www.codepoetry.net/projects/cups-pdf-for-mosx>

Hope it helps,
T.

PS: The plugin seems to work fine with iText2.0.8


jerome mutterer-2 wrote
John,
You can do this by installing the PDF Writer plugin and the iText library.
(see http://rsb.info.nih.gov/ij/plugins/pdf-writer.html )

Split your stack using Image/Stacks/Stack to Images, run the PDF Writer
plugin checking 'save all images' and 'one image per page' options.

Note : Do not install the latest version of iText. The PDF Writer plugin
works nicely with iText version 1.3.6.
Visit
http://sourceforge.net/project/showfiles.php?group_id=15255&package_id=12596
and download itext-1.3.6.jar to the plugins folder.

Jerome

On Fri, Jun 6, 2008 at 2:21 AM, John Alexander <jalexand@uchicago.edu>
wrote:

> I am using imageJ to create "summary" slides of my imaging
> data.  Currently, I have a macro which automatically
> generates a multi-layer diff (for different pages).  I am
> interested in converting these tiff files to PDF files -
> with each layer being a new page.  Does anyone know if this
> is easily doable?  Can imageJ export a tif as a pdf?  Or do
> I need to resort to using a second application?
>
> John
> John Alexander, Ph.D.
> Post-doctoral Fellow
> William Green Lab
> University of Chicago
> 947 E. 58th St.
> Abott Hall 402
> Chicago, IL 60637
> off: (773) 702-9386
> fax: (773) 702-3774
> jalexand@uchicago.edu
>