Combine two PDF files into one without rasterizing?

View: New views
8 Messages — Rating Filter:   Alert me  

Combine two PDF files into one without rasterizing?

by rooftop99 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

**********************************************************************
4D Server v11 SQL has arrived!
Buy it NOW at http://store.4ddepot.com

4th Dimension Internet Users Group (4D iNUG)
FAQ:  http://www.4d.com/support/faqnug.html
Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
Post: mailto:4d_tech@...
Options: https://lists.4d.com/mailman/listinfo/4d_tech
**********************************************************************

RE: Combine two PDF files into one without rasterizing?

by Jeffrey Kain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
To: 4D iNug Tech
Subject: Combine two PDF files into one without rasterizing?

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!


**********************************************************************
4D Server v11 SQL has arrived!
Buy it NOW at http://store.4ddepot.com

4th Dimension Internet Users Group (4D iNUG)
FAQ:  http://www.4d.com/support/faqnug.html
Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
Post: mailto:4d_tech@...
Options: https://lists.4d.com/mailman/listinfo/4d_tech
**********************************************************************

RE: Combine two PDF files into one without rasterizing?

by Jeffrey Kain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
To: 4D iNug Tech
Subject: RE: Combine two PDF files into one without rasterizing?

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
To: 4D iNug Tech
Subject: Combine two PDF files into one without rasterizing?

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!


**********************************************************************
4D Server v11 SQL has arrived!
Buy it NOW at http://store.4ddepot.com

4th Dimension Internet Users Group (4D iNUG)
FAQ:  http://www.4d.com/support/faqnug.html
Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
Post: mailto:4d_tech@...
Options: https://lists.4d.com/mailman/listinfo/4d_tech
**********************************************************************

Re: Combine two PDF files into one without rasterizing?

by Chuck Miller-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We use pdf tools at pdf-tools.com which is scriptable. We are very  
pleased with the product

Regards

Chuck
On Jul 14, 2008, at 5:17 PM, Jeffrey Kain wrote:

> 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!



---------------------------------------------------------------------------
Chuck Miller                          Voice: (617) 739-0306
Informed Solutions, Inc.              Fax: (617) 232-1064
----------------------------------------------------------------------------



**********************************************************************
4D Server v11 SQL has arrived!
Buy it NOW at http://store.4ddepot.com

4th Dimension Internet Users Group (4D iNUG)
FAQ:  http://www.4d.com/support/faqnug.html
Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
Post: mailto:4d_tech@...
Options: https://lists.4d.com/mailman/listinfo/4d_tech
**********************************************************************

Re: Combine two PDF files into one without rasterizing?

by Nils Kollandsrud :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...> 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
**********************************************************************
4D Server v11 SQL has arrived!
Buy it NOW at http://store.4ddepot.com

4th Dimension Internet Users Group (4D iNUG)
FAQ:  http://www.4d.com/support/faqnug.html
Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
Post: mailto:4d_tech@...
Options: https://lists.4d.com/mailman/listinfo/4d_tech
**********************************************************************

Re: Combine two PDF files into one without rasterizing?

by Julio Carneiro :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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#"@exception@") &  
($stdout#"@failed@") & (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,
**********************************************************************
4D Server v11 SQL has arrived!
Buy it NOW at http://store.4ddepot.com

4th Dimension Internet Users Group (4D iNUG)
FAQ:  http://www.4d.com/support/faqnug.html
Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
Post: mailto:4d_tech@...
Options: https://lists.4d.com/mailman/listinfo/4d_tech
**********************************************************************

Re: Combine two PDF files into one without rasterizing?

by Chuck Miller-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
----------------------------------------------------------------------------



**********************************************************************
4D Server v11 SQL has arrived!
Buy it NOW at http://store.4ddepot.com

4th Dimension Internet Users Group (4D iNUG)
FAQ:  http://www.4d.com/support/faqnug.html
Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
Post: mailto:4d_tech@...
Options: https://lists.4d.com/mailman/listinfo/4d_tech
**********************************************************************

Re: Combine two PDF files into one without rasterizing?

by rooftop99 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for all your help on this subject!  I have tested both the  
Python script and JoinPDF java app solutions and they both worked on  
our Mac server.  Very helpful and very free - two great things.....

Thanks again,
Kirk

On Jul 15, 2008, at 5:12 AM, Julio Carneiro wrote:

> 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#"@exception@") &  
> ($stdout#"@failed@") & (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,
> **********************************************************************
> 4D Server v11 SQL has arrived!
> Buy it NOW at http://store.4ddepot.com
>
> 4th Dimension Internet Users Group (4D iNUG)
> FAQ:  http://www.4d.com/support/faqnug.html
> Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
> Unsub:  mailto:4D_Tech-Unsubscribe@...
> Post: mailto:4d_tech@...
> Options: https://lists.4d.com/mailman/listinfo/4d_tech
> **********************************************************************

**********************************************************************
4D Server v11 SQL has arrived!
Buy it NOW at http://store.4ddepot.com

4th Dimension Internet Users Group (4D iNUG)
FAQ:  http://www.4d.com/support/faqnug.html
Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
Post: mailto:4d_tech@...
Options: https://lists.4d.com/mailman/listinfo/4d_tech
**********************************************************************
LightInTheBox - Buy quality products at wholesale price