We've been using a free commandline utility called PDFTK which we make a system call to from a Ruby on Rails app to split PDFs into individual pages. However, it only supports PDF Version 1.4 and back.
Can anyone recommend another utility or gem/Rails plugin to similarly manipulate later version PDFs?
Thanks
pdftk is built on iText (dated 2002). It should be possible to tweak it so that it builds with the latest version of iText, or alternatively install java and call iText directly.
There is another compilation v2.01.
I have tried with v1.5 specs PDF file and it works.
Get it at: http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
Related
electron, node-webkit, brackets-shell and atom-shell are frameworks that allow a user to create stand alone executables that use HTML, CSS, and JavaScript (Node) for all code in the app. They don't require any prior installation of any software, as I understand it. I want to use Dart instead of JavaScript. I don't want a chrome app because that requires the installation of Chrome, if I understand correctly. Is it possible to make a stand-alone application using Dart? Will DartToJs be able to do this for me?
You need to have a Dart-VM (Dart-Runtime) installed in order to be able to execute Dart applications on the command line/server.
As far as I know there is no way to create a standalone executable, at least no easy one.
It is technically possible to create an executable that contains the Dart-VM but there are no tools available yet that generate that for you.
I don't think the path using Dart2JS will help much. Dart2JS aims primarily at browsers but I have heard that some try to use Dart2JS to run Dart code with Node.js but I don't know if that really works.
This similar question contains some links that may be of interest to you: Embedding Dart into application
dart2js + node-webkit will definitely do this for you. Just compile your webapp to js, make a proper package.json file and follow the standard directions on the node-webkit github page.
There's even a pub package that let's you use the node-webkit API from dart (filesystem access, window controls, and whatnot).
Search pub for node_webkit and you'll find it.
Good luck.
Ok so I found this: http://eclipsecolorthemes.org/ to get new themes. But how do I get the dart editor to install them? Also should I have got the XML theme or the EPF?
You might take a look at this plugin Rainbow in action at GAppsEngine.
He figured out how it works has some info in the README.md in his repo.
If you don't find all you need add a comment and I try to find the discussion in the Dart Google group where the Dart people explained it to him.
To do this you would need to switch from the Dart Editor to Eclipse with the Dart Plugin. The Dart Editor is simply Eclipse with the Dart Plugin installed.
First, download the latest version of Eclipse. Then install the Dart Plugin. Next install the Color Theme Plugin.
Now you can use themes and dart together! Make sure to switch to the Dart perspective before you start coding.
I'm new to java and image processing. I want to develop a java application with functionalities like thresholding and hitorgrams related operations. I have considered about 2 image processing libraries; JAI and imageJ.
I have found that imajeJ is more suitable, but when i searched for it to download i only found a tool instead of a library. Can someone tell me where i can download imageJ api(/library) and install it, so i can use it in netbeans.
Download the latest ImageJ jar from here and add it as an external library for your project. You can then program to the API as described in the API documentation. The servlet example provided here may be of use.
I would like to use a PDF to image conversion API for Java, PDF-Renderer seems to be quite good. As it's been written for JRE 1.5 compliance, I get alot of compile errors when I try to compile down to 1.4. I have tried tweeking the compiler compatibility options without success. So, is there a 1.4 compatible build for PDF Renderer ? If not would like to know if there are any other options for a PDF=> image renderer in java that is compatible with JRE 1.4.2+
when you are running javac use command line option -target 1.4. Due to java 1.5 added generics and enum that both are compiler features I believe that javac will succeed to generate 1.4-compatible byte code.
But you will probably have some problems later. For example if PDFERenderer uses java classes from JDK 1.5 that cannot be found in JDK 1.4.... In this case you can try to add them to bootclasspath when you are running your application but I cannot guarantee success because classes may depend on other classes etc...
You can try but I'd personally recommend you to move forward to java 1.6. :)
Is there any way to convert odt documents to doc or rtf on linux without openoffice or any library that relies on having openoffice installed ?
OpenOffice.org and its derivatives (LibreOffice, Symphony, etc) currently have one of the best converters between ODF and the Microsoft formats (besides the ODF support built into MS Office).
If those converters are not an option for you, you can choose between some alternatives: Foremost you might want to check out the KOffice project which also offers command line tools for file conversion:
KOffice - File Filters
Then there is another open source project with a free BSD license available on SourceForge:
OpenXML/ODF Translator
This project offers not only add-ins for Microsoft Office, but also a stand-alone command line version which also runs on Linux.
Then there would also be a different approach: You can automate Google Docs using command line tools:
googlecl: Command line tools for the Google Data APIs
Google Docs file conversion have internally been based on the OpenOffice.org file filters, but as far as I know they have been replaced by Aspose, a library for document formats.
Aspose is available in several versions, and as you have a Linux dependency you might want to check out their Java version.
Aspose.Words for Java
The library has its price, but you won't find another library that is not a full office suite with that quality.
If you don't want to use OpenOffice, Google Docs is your best bet. Cross-platform, web-based, and free, it takes about 2 minutes. You would upload the file, and check convert, then redownload as a doc or pdf (depends on what you want).
http://docs.google.com/
You could try this freeware (Docx2Rtf) and run it under WINE.
Checkout unoconv. It relies on OpenOffice.org its core, but it doesn't rely on any GUI packages. I assume this is what you want?
Use http://zamzar.com/ It has great support for all those formats. And is not reliant on any other installed program.
And of course, being a web page, it will work on any OS.