Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

how to transform html file to image?

Thread view: 
tamsun - 10 Aug 2006 10:55 GMT
Is there a opensource project can transform html file to image?
Tom Cole - 10 Aug 2006 17:24 GMT
How advanced are these HTML files? If the JEditorPane will render them
good enough you could use the contentPane form it and render an image.

> Is there a opensource project can transform html file to image?
tamsun - 11 Aug 2006 02:50 GMT
the HTML file is simple, just some static text and tables.

In fact, I have a word file as template in workflow,
e.g. flow A --> flow B --> flow C

At every flow point, I will add something into word file.
I want client can only view this file but cann't change it.
So in server I want transform editable file(such as word)
to image.

>How advanced are these HTML files? If the JEditorPane will render them
>good enough you could use the contentPane form it and render an image.
>
>> Is there a opensource project can transform html file to image?
Andrew Thompson - 11 Aug 2006 17:01 GMT
...
> At every flow point, I will add something into word file.
> I want client can only view this file but cann't change it.
> So in server I want transform editable file(such as word)
> to image.

Images are editable.  Please refrain from top-posting.

Andrew T.
tamsun - 12 Aug 2006 14:26 GMT
yes, images are editable. we can use photoshop.
pdf is also editable, we can use acrobat professional
or other pdf editor. and pdf can be changed  more difficult
than doc or image. Of course, client can use camera to
get the computer screen.

I just have one object:
1. I can change origin file(e.g. word file) easily.
2. client can view and print my file, but can't
change my file easily.

Does any blue print can do this?

>...
>> At every flow point, I will add something into word file.
[quoted text clipped - 5 lines]
>
>Andrew T.
Andrew Thompson - 12 Aug 2006 15:00 GMT
> yes, ..

Please refrain from top-posting.
<http://catb.org/jargon/html/T/top-post.html>

Andrew T.
Luc The Perverse - 11 Aug 2006 18:30 GMT
> the HTML file is simple, just some static text and tables.
>
[quoted text clipped - 5 lines]
> So in server I want transform editable file(such as word)
> to image.

It has been done - it's called a PDF file

--
LTP

:)
Andrew Thompson - 12 Aug 2006 05:03 GMT
> "tamsun" <tamsun@gmail.com> wrote in message
...
> > I want client can only view this file but cann't change it.
..
> It has been done - it's called a PDF file

Good point.  But..

tamsun, *why* do you want the user to *not* be able
to edit these documents?

The answer might be..
a)  To protect the end-user from having inaccurate
 information after the 'instructions file' has accidentally
 been edited by a co-worker.
b)  To protect the document issuer from having *deliberately*
 edited (and false) documents in circulation.

Juc's suggestion of PDF is good* if the answer is 'a',
but even 'uneditable' PDF's can be copied directly out
of Acrobat viewer onto the clipboard, so it will not
be suited to the second part - 'b'.

Of course, there is *nothing* that provides complete
protection for the document issuer.  Once the information
has left your immediate control, once that information
is on the user's screen - they are technically able to do
whatever they want with it.

* As an aside - I hate PDF's, but at least they provide
a more useable form of information than images.

Andrew T.
bowman - 12 Aug 2006 05:15 GMT
> Juc's suggestion of PDF is good* if the answer is 'a',
> but even 'uneditable' PDF's can be copied directly out
> of Acrobat viewer onto the clipboard, so it will not
> be suited to the second part - 'b'.

I've never been successful in copying password protected PDF's to the
clipboard. As an aside, I find this technique even more annoying than
providing API documentation in PDF format in the first place.
Andrew Thompson - 12 Aug 2006 06:38 GMT
> > Juc's suggestion of PDF is good* if the answer is 'a',
> > but even 'uneditable' PDF's can be copied directly out
[quoted text clipped - 3 lines]
> I've never been successful in copying password protected PDF's to the
> clipboard.

Oh - I did not check any 'password protected' documents,
simply one that was uneditable.

OTOH, I did go on a search for 'applications that are not
Acrobat viewer' that might ..
a) load a PDF
b) ignore the 'suggestions' re not copying, or
 allow conversion to a much more generic format
 such as HTML..
..there were quite a few hits, for example, for..
<http://www.google.com.au/search?q=disable+%22password+protected%22+pdf>

>..As an aside, I find this technique

'this technique'?  What are you referring to, exactly?

>...even more annoying than
> providing API documentation

When was API docs. mentioned (before now)?

>..in PDF format in the first place.

(..but since you brought it up..)
Why would you prefer API documentation in PDF format?
The *only* advantage I've ever seen to PDF is that it
'prints better'.

HTML prints *almost* as well, and provides much better utility
on-screen (where it should be left - to help the eco-system).

Andrew T.
Andrew Thompson - 11 Aug 2006 02:00 GMT
> Is there a opensource project can transform html file to image?

General Question (for anyone that has ever attempted this)

Why on earth would you want to convert *textual* information
1) that can be programatically
 - searched
 - indexed
 - spell checked
2) that provides the user with
 - text that is resizeable & restylable to their needs
 - a reshapable view port (suitable to current screen size
    or browser window size)
 - a textual form of the document that can 'adapt itself'
   suitable for either screen or print.
.. to a high bandwidth *image* that provides *none* of those
advantages?

Andrew T.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.