Combine two PDF files into one without rasterizing?
rooftop99 at mac.com (7/14/08 2:07PM)
Jeffrey Kain (7/14/08 5:11PM)
Jeffrey Kain (7/14/08 5:17PM)
Nils Kollandsrud (7/15/08 7:27AM)
Julio Carneiro (7/15/08 9:12AM)
Chuck Miller (7/15/08 10:12AM)
rooftop99 at mac.com (7/14/08 2:07 PM)
Hi,
Does anyone know of a plug-in (or component) that will allow 4d to
combining two PDF files into one without rasterizing the end file? I
would like the resulting file to still be a searchable PDF. QPix can
combine PDF files but the end result is basically a graphic, which is
unsearchable. Thanks!
System: Mac OS X 10.5.4 running 2004.7 4D server. Clients are both
Mac and Windows.
Thanks,
Kirk
Jeffrey Kain (7/14/08 5:11 PM)
<EB8EBE254C16534D9BC41A91DAECF8780428639D@...
The way we do it on Windows is to include a copy of pdftk in our Extras
directory, and call it using LAUNCH EXTERNAL PROCESS. It works great.
Perhaps there is a similar command-line utility available for Mac.
http://www.accesspdf.com/pdftk/
-----Original Message-----
From: rooftop99@...
Sent: Monday, July 14, 2008 5:07 PM
Hi,
Does anyone know of a plug-in (or component) that will allow 4d to
combining two PDF files into one without rasterizing the end file? I
would like the resulting file to still be a searchable PDF. QPix can
combine PDF files but the end result is basically a graphic, which is
unsearchable. Thanks!
Jeffrey Kain (7/14/08 5:17 PM)
<EB8EBE254C16534D9BC41A91DAECF878042863AB@...
Actually, it looks like pdftk is available for OS X as well...
-----Original Message-----
From: Jeffrey Kain
Sent: Monday, July 14, 2008 5:11 PM
The way we do it on Windows is to include a copy of pdftk in our Extras
directory, and call it using LAUNCH EXTERNAL PROCESS. It works great.
Perhaps there is a similar command-line utility available for Mac.
http://www.accesspdf.com/pdftk/
-----Original Message-----
From: rooftop99@...
Sent: Monday, July 14, 2008 5:07 PM
Hi,
Does anyone know of a plug-in (or component) that will allow 4d to
combining two PDF files into one without rasterizing the end file? I
would like the resulting file to still be a searchable PDF. QPix can
combine PDF files but the end result is basically a graphic, which is
unsearchable. Thanks!
Nils Kollandsrud (7/15/08 7:27 AM)
<ae9c7fd70807142227r139cd9cfoc1030619ddd65b81@...
We use the python script provided in Mac OS X 10.4 and up. Location:
/System/Library/Automator/Combine PDF
Pages.action/Contents/Resources/join.py
Usage:
join [--output <file>]] [--append] [--shuffle] [--preview] [--verbose]
Here is a sample commandline for joining two pdfs:
python '/System/Library/Automator/Combine PDF
Pages.action/Contents/Resources/join.py' -o '/Output.pdf'
'/Input1.pdf' '/Input2.pdf'
You can also use it to split a pdf into separate one-page pdf's if
required.
On Mon, Jul 14, 2008 at 11:07 PM, <rooftop99@mac.com> wrote:
Hi,
Does anyone know of a plug-in (or component) that will allow 4d to
combining
two PDF files into one without rasterizing the end file? I would like
the
resulting file to still be a searchable PDF. QPix can combine PDF
files but
the end result is basically a graphic, which is unsearchable. Thanks!
System: Mac OS X 10.5.4 running 2004.7 4D server. Clients are both
Mac and
Windows.
Thanks,
Kirk
--
Nils Kollandsrud
Ixmal Intelesis as, Karenslyst Alle 2, Postboks 527 Skoyen, 0214 Oslo,
Norway
Tel: +47 22121212 Fax: +47 22121222 Mob: +47 920 15550
Julio Carneiro (7/15/08 9:12 AM)
I use joinPDF. A command line java app that works mac/windows. It
includes a splitPDF as well. All you need is a java JRE installed
(built into OS X).
here and many other places:
http://www.iis.ee.ic.ac.uk/~g.briscoe/joinPDF/
Here is a 4D code snippet that runs that from a list of pdf paths:
$joinPDF:="java -cp
\""+Get 4D folder(Extras Folder )+"PDF.jar\"
Concat "+Char(Double quote )+$docPath+Char(Double quote )
For ($i;1;Size of
array($aDocumentName))
$joinPDF:=$joinPDF+" "+Char(Double quote )+$aDocumentName{$i}
+Char(Double quote )
End for
If (SYSEisMacintosh )
` special code
to remove mac volume name from the path and
replace : by /
C_TEXT($volume)
$volume:=Substring(Get 4D folder(Extras Folder );
1;Position(":";Get 4D folder(Extras Folder )))
$joinPDF:=Replace string(Replace string($joinPDF;
$volume;"/");":";"/")
End if
SET ENVIRONMENT
VARIABLE("_4D_OPTION_CURRENT_DIRECTORY";Get 4D
folder(Extras Folder ))
SET ENVIRONMENT
VARIABLE("_4D_OPTION_HIDE_CONSOLE";"true")
LAUNCH EXTERNAL
PROCESS($joinPDF;$stdin;$stdout;$stderr)
`combine ALL pdfs
If (($stderr="") &
($stdout#"@... &
($stdout#"@... & (Test path name($docPath)=Is a document )) `
test if all went well
hth
julio
On Jul 14, 2008, at 6:07 PM, rooftop99@... wrote:
Hi,
Does anyone know of a plug-in (or component) that will allow 4d to
combining two PDF files into one without rasterizing the end file?
I would like the resulting file to still be a searchable PDF. QPix
can combine PDF files but the end result is basically a graphic,
which is unsearchable. Thanks!
System: Mac OS X 10.5.4 running 2004.7 4D server. Clients are both
Mac and Windows.
Thanks,
Chuck Miller (7/15/08 10:12 AM)
<19D5860A-FEBD-4EC8-994D-02E2586FBDA4@...
If resulting size matters, you have to look at that as well. Run
tests. I think all of the options mentioned will work well.
On Jul 15, 2008, at 1:27 AM, Nils Kollandsrud wrote:
We use the python script provided in Mac OS X 10.4 and up. Location:
/System/Library/Automator/Combine PDF Pages.action/Contents/
Resources/join.py
Usage:
join [--output <file>]] [--append] [--shuffle] [--preview] [--verbose]
Here is a sample commandline for joining two pdfs:
python '/System/Library/Automator/Combine PDF
Pages.action/Contents/Resources/join.py' -o '/Output.pdf'
'/Input1.pdf' '/Input2.pdf'
--------------------------------------------------------------------------
-
Chuck Miller
Voice: (617) 739-0306
Informed Solutions, Inc. Fax:
(617) 232-1064
Reply to this message
Summary created 7/15/08 at 1:23PM by Intellex Corporation
Comments welcome at: feedback@intellexcorp.com