Go Back   TechArena Community > Software > Windows Software
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Software to break a PDF file from the command line

Windows Software


Reply
 
Thread Tools Search this Thread
  #1  
Old 05-05-2009
Member
 
Join Date: Nov 2008
Posts: 866
Software to break a PDF file from the command line
  

We are looking for a Windows based software which, from a command line, burst a PDF file into the page or document.

Example, a PDF file containing 5 pages, with bookmark PAGE1, PAGE2, PAGE3, PAGE4 and PAGE5.

We would like the software via the command line (ie without interface) can generate PAGE1.pdf, PAGE2.pdf ...

Also, is it possible to highlight the index in a PDF to a text file?

Reply With Quote
  #2  
Old 05-05-2009
Member
 
Join Date: May 2008
Posts: 2,944
Re: Software to break a PDF file from the command line

Nitro PDF Professional is the perfect PDF product for business and enterprise combining the power to create, edit, organize, secure and convert PDF with an extremely competitive price. This software lets anyone easily create, combine, edit, secure, convert and collaborate with PDF files.

Nitro PDF Professional's key features:
  • Create PDF files from more than 300 file types and use one-click functionality to quickly convert commonly-used file types such as Microsoft Word, Excel, PowerPoint, WordPerfect and more.
  • Edit PDF content, no matter what it is. Fix typos, remove and change text. Perform advanced image editing tasks such as inserting, replacing, cropping, resizing and downsampling. Insert headers, footers, watermarks, numbering and more across multiple pages.
  • Quickly convert PDF files for reuse in Microsoft Word, WordPerfect, OpenOffice and more.
  • Control how people use the PDF files you share by encrypting them. Use passwords and digital certificates to limit who can open files and permissions to limit functionality such as printing, editing, copying and form filling. Use digital signatures and certification to make tamper-proof documents.
Reply With Quote
  #3  
Old 05-05-2009
Member
 
Join Date: Jan 2008
Posts: 1,515
Re: Software to break a PDF file from the command line

Here is the code:

Code:
public static void parsePage1(String[][] tab)
      throws IOException
    {
     Runtime myRuntime = Runtime.getRuntime();
     Process myProcess;
     File file = new File("C:\\" );
 
     for(int i=0; i<tab.length; i++)
     {
      file = new File("SOURCE_PATH\\"+tab[i][0]+"_"+tab[i][1]+"_"+tab[i][2]+"_"+tab[i][3]+".pdf" );
      myProcess = myRuntime.exec("java -jar \"C:\\Program Files\\pdfsam\\lib\\pdfsam-console-0.7.3.jar\" -f \""+file.getPath()+"\" -o DESTINATION_PATH -s BURST -compressed split" );
      try
      {
       myProcess.waitFor();
      }
      catch (InterruptedException ie)
      {
       ie.printStackTrace();
      }
      file.delete();
      file = new File("DESTINATION_PATH\\1_"+tab[i][0]+"_"+tab[i][1]+"_"+tab[i][2]+"_"+tab[i][3]+".pdf" );
      file.renameTo(new File("DESTINATION_PATH\\"+tab[i][0]+"_"+tab[i][1]+"_"+tab[i][2]+"_"+tab[i][3]+".pdf" ));
      file = new File("DESTINATION_PATH\\2_"+tab[i][0]+"_"+tab[i][1]+"_"+tab[i][2]+"_"+tab[i][3]+".pdf" );
      file.delete();
      myProcess.destroy();
     }
    }
Reply With Quote
Reply

  TechArena Community > Software > Windows Software
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Software to break a PDF file from the command line"
Thread Thread Starter Forum Replies Last Post
How can i get the command line parameters for any application/software? benno777 Software Development 1 03-07-2012 12:48 PM
How to Turn File Sharing On/Off via command line? Obessed Networking & Security 3 10-11-2010 02:40 AM
Add a File Printer port from Command Line mandalorian2 Software Development 0 29-04-2008 09:52 PM
.inf file will not run from the command line CHRITOPHER Windows XP Support 2 31-08-2007 02:53 AM
Group Policy software install with command line switch James Lavery Windows Server Help 4 08-10-2004 07:04 PM


All times are GMT +5.5. The time now is 11:43 PM.