Bug 85000 - Please allow direct PDF saving
Summary: Please allow direct PDF saving
Status: RESOLVED DUPLICATE of bug 94522
Alias: None
Product: kooka
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Klaas Freitag
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-12 13:59 UTC by Marc Haber
Modified: 2012-03-15 16:56 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
scan2pdf shell script (6.59 KB, text/plain)
2007-07-05 20:14 UTC, Mark Purcell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Haber 2004-07-12 13:59:02 UTC
Version:           0.42 (using KDE 3.2.3,  (testing/unstable))
Compiler:          gcc version 3.3.3 (Debian 20040422)
OS:                Linux (i686) release 2.4.26-zg1-vash

I would like to save directly to a PDF file, without having to go through the motions of first saving in another format and printing that file to PDF in a second step.

Greetings
Marc
Comment 1 Klaas Freitag 2004-07-12 16:30:38 UTC
Well, this has very low priority for me, because saving into Pdf is not a very good take for images... 
See for example the paragraph 
  2004 Mar 21: A comment to PDF
on http://www.xsane.org for an explanation.
Comment 2 Marc Haber 2004-07-22 21:24:18 UTC
The reason why I would like to have the docs as PDF is that a PDF reader is available everywhere.

I have, however, solved my local problem by writing a small wrapper script around scanimage and convert.
Comment 3 Mark Purcell 2004-08-08 13:20:59 UTC
I find the ability to scan direct to PDF very useful with the full version of Acrobat. Often I need to scan the signature page of a document to attach to the PDF document, or I wish to email a multi page document which can only be scanned.

Whilst PDF is a large format for images, it does support multi page images very well and has wide support across a number of platforms.
Comment 4 Fred Schättgen 2004-09-23 00:35:44 UTC
I'm not sure if it was worth a new wish, since it's heavily related to that one, but now it's too late, sorry. I just want to point those who are watching this wish to Bug 90060 for another argument for introducing pdf output :) 
Comment 5 Chris 2004-12-06 06:15:53 UTC
If you want a small B&W pdf file, use this script below.

save this file as pdfscan in /usr/bin and chmod it to make user executable.

#!/bin/bash

usage()
{
echo "Usage: pdfscan {nameofimage.pdf}"
}

#test to see if a filename has been entered
if [ $# -lt 1 ] ; then usage ; exit 1 ; fi
name=$1

#Read output of help command to get scanner device name
#scanner=`scanimage --help | tail --lines=1 | sed -e 's/ /\n/g' | tail --lines=1  `
scanner='scanimage -f %d | sed -e 's/0/\n/g' | tail --lines=1 '

echo Now scanning your A4 document on $scanner

#scan the A4 binary(b&w) file uncompressed at 300dpi to temporary file
scanimage -d $scanner --mode binary --resolution 300 --quick-format A4 --format tiff >temp-$name.tif

#Use tif utility to convert the temporary binary tif to a G4 compressed tif and then delete the temporary file
#tiffcp -c g4 temp-$name.tif $name.tif
#rm -f temp-$name.tif

# display resulting G4 tiff file
#kfax temp-$name.tif 

#convert to pdf with G4 compression
tiff2pdf temp-$name.tif -p A4 -q G4 -o $name

#display pdf
kghostview $name
Comment 6 Tobias Niwi 2005-03-28 16:39:27 UTC
I read the reason for 'low priority' at Xsane. From a technological point of view this makes sense to me: PDF-Files with pictures in it really get huge. But most of the people I have to send multi page images wouldn't know how to use the suggested alternatives (postscript, tiff or pnm). However, kooka is also not offering the postscript-alternative. Postscript export for multi page images would be fine.
Comment 7 Helge Hielscher 2005-04-05 22:23:31 UTC
*** This bug has been confirmed by popular vote. ***
Comment 8 Helge Hielscher 2005-04-05 22:35:33 UTC
The statement at the the xsane page is not true. The main advantage of PDF is that it can be searchable and that common readers support multi page documents unlike tiff-viewers.
Have a look at http://www.adobe.com/products/acrcapture/main.html and especially the paragraph "Output Formats" at http://www.adobe.com/support/techdocs/317791.html
Comment 9 Norm 2006-01-11 03:29:07 UTC
The inability of Linux to scan directly to multi-page pdf (as in PaperPort by Scansoft or Adobe Acrobat) is one of the two remaining reasons why I cannot completely divorce Bill Gates.

Scanning photos to pdf is not the desire, nor the request.  The ability / option to scan all types of documents to searchable pdf's is.  Likewise, scanning documents to png's or tiff's is not useful...it is impractical to create a separate OCR text file for each tiff in order to search a large archive.

I need the ability to scan, archive, and search gigabytes of local documents for work.  Web-based Linux programs do not meet privacy / confidentiality needs.  Pdf is the ideal format for many reasons.  Scanning 5000 documents with a document feeder, first to png, and then printing each one to pdf, is an impracticality which prohibits me from migrating to Linux to get my work done.  As much as I dislike Windows, it lets me do this.

Thanks to innumerable "Linuxophiles", this OS does not need to "compete" with Windows...it rightfully stands on its own.  I want to use Linux only...as soon as it meets my work needs.

Please consider improving Kooka's functionality so that I can finally file those  divorce papers.
Comment 10 Jonson 2007-04-24 19:12:25 UTC
That's my wish too. It would be usefull to scan documents and saving them into PDF file. I, for example, recently received copied article (no picture, just text) from book from professor and my classmates wanted to send them through mail. How to do it? Send them 5 JPG files? Very impractically... But send them whole article in PDF format would be more practicall.

And why not add ability to save text in ODT file using Openoffice and/or Kword?
Comment 11 Mark Purcell 2007-07-05 20:14:35 UTC
Created attachment 21061 [details]
scan2pdf shell script 

PDF also supports embedded compression, which significantly reduces the size of
documents.

I've attached the shell script I'm currently using for this task.
Comment 12 Jonathan Marten 2008-01-23 11:13:27 UTC
Marking as duplicate, 94522 has additional wish for TIFF saving as well as PDF (and the same pdfscan script).

Regarding comment #9, producing "searchable PDF" requires OCR.  Not sure if the state-of-the-art on Linux is enough for that yet.


*** This bug has been marked as a duplicate of 94522 ***
Comment 13 Jonathan Marten 2012-03-15 16:11:27 UTC
(In reply to comment #1)
> Well, this has very low priority for me, because saving into Pdf is not a
> very good take for images... 
> See for example the paragraph 
>   2004 Mar 21: A comment to PDF
> on http://www.xsane.org for an explanation.

No longer on xsane.org, but from the Wayback Machine:

2004 Mar 21: A comment to PDF
A lot of people ask for support for saving to PDF files. The reason they ask is that they think that the PDF format is the general exchange format. This is true for text based documents but scanned documents are 100% image based. You would get huge documents that can not be searched, you do not have any advantages by using PDF. That is the reason why I will not add support for the PDF format. It simply does not make sense!
I plan to add support for multiple page files for postscript, tiff and maybe pnm.
Comment 14 Helge Hielscher 2012-03-15 16:56:12 UTC
The advantage of PDF >= 1.4 is that it supports JBIG2.
http://en.wikipedia.org/wiki/JBIG2