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 [hidden email] |
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 <[hidden email]> 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 > [hidden email] > |
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
|
Tiff is a multi-page image document, which is exclusive for faxing. Converting tiff into pdf is a little more complex than converting other raster images to pdf document. Check these methods of a online tiff to pdf conversion guide.
Private Function GetPage(pageIdx As Integer) As BasePage Implements TIFFDocument.GetPage End Function Private Function toImage() As BaseImage Implements TIFFPage.toImage End Function Private Function toImage(width As Integer, height As Integer) As BaseImage Implements TIFFPage.toImage End Function Private Sub New(imagesource As List(Of REImage)) End Sub Private Sub Convert(s As Stream, format As ImageFormat) Implements REImage.Convert End Sub |
Free forum by Nabble | Edit this page |