This week's book giveaways are in the AI and JavaScript forums.
We're giving away four copies each of GANs in Action and WebAssembly in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

PDF to Editable Format(RTF/HTML) & back to PDF

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Sorry if this question doesnt belong to this sub-forum.
I am working on an issue which had a PDF file generated using iText.
The pdf file contains only formatted text and the requirement is to edit (add/remove content) from the PDF. For this purpose I was thinking whether this is possible using any free java api. I was looking at Google Docs where a document can be saved as a PDF again.
Using iText I think I can generate RTF(also HTML minus the pagebreaks etc) but is it possible to convert it back to PDF with same formatting of text.
Just wanted to buzz people to know whether something like this is possible.

Thanks in advance
Ravi
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically, no. Very few operations are possible on PDF files once they are generated. Adobe Acrobat Professional can perform some editing, but there's no public API -free or commercial- for this.
 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ravi,


I have, in fact, tweaked into the source code of and was successful in using the OpenOffice2.1 framework API to convert RTF/Word etc. documents into a pdf document on the fly..
It provides for a proper-formatting and conversion from any of the readalbe formats like text, word-docs etc into pdf without using acrobat reader.

You may as well try the same.

Let me know if you need further help.

Regards,
Moto.
 
Ulf Dittmer
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by moto raja:
I have, in fact, tweaked into the source code of and was successful in using the OpenOffice2.1 framework API to convert RTF/Word etc. documents into a pdf document on the fly.



The question is about editing an existing PDF document, so this approach does not help, as OO can not open PDF documents.
 
moto raja
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dittmer,

I'm pretty sure that OO can open pdf documents.
I have a version of OO Installable on my machine and I just opened a pdf doc.
 
Ulf Dittmer
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by moto raja:
I'm pretty sure that OO can open pdf documents.
I have a version of OO Installable on my machine and I just opened a pdf doc.


I stand corrected. That's impressive on OO's part. Is it possible to edit the document, or to save to an editable format? That's really what is being asked here.
 
Bartender
Posts: 9612
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by moto raja:
I have a version of OO Installable on my machine and I just opened a pdf doc.



That's news to me. I just tried to open a PDF with 2.2.0 on Ubuntu Linux and 2.2.1 on WinXP and they both opened the PDF as a source file (i.e. plain ASCII text) not as a rendered document. In any case, OpenOffice will not allow you to edit a PDF and save it (AFAIK).
 
Ulf Dittmer
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's what NeoOffice does on my OS X (opening the ASCII source), but I wasn't sure if OO might be doing something more.
 
Without deviation from the norm, progress is not possible - Zappa. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!