Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > how to transform html file to image?

Reply
Thread Tools

how to transform html file to image?

 
 
tamsun
Guest
Posts: n/a
 
      08-10-2006

Is there a opensource project can transform html file to image?

 
Reply With Quote
 
 
 
 
Tom Cole
Guest
Posts: n/a
 
      08-10-2006
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.

tamsun wrote:
> Is there a opensource project can transform html file to image?


 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      08-11-2006
tamsun wrote:
> 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.

 
Reply With Quote
 
tamsun
Guest
Posts: n/a
 
      08-11-2006
On 10 Aug 2006 09:24:50 -0700, "Tom Cole" <> wrote:

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.
>
>tamsun wrote:
>> Is there a opensource project can transform html file to image?

 
Reply With Quote
 
Andrew Thompson
Guest
Posts: n/a
 
      08-11-2006
tamsun wrote:
....
> 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.

 
Reply With Quote
 
Luc The Perverse
Guest
Posts: n/a
 
      08-11-2006
"tamsun" <> wrote in message
news:...
> On 10 Aug 2006 09:24:50 -0700, "Tom Cole" <> wrote:
>
> 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.


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

--
LTP




 
Reply With Quote
 
Andrew Thompson
Guest
Posts: n/a
 
      08-12-2006
Luc The Perverse wrote:
> "tamsun" <> 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.

 
Reply With Quote
 
bowman
Guest
Posts: n/a
 
      08-12-2006
Andrew Thompson wrote:

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

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
 
Reply With Quote
 
Andrew Thompson
Guest
Posts: n/a
 
      08-12-2006
bowman wrote:
> Andrew Thompson wrote:
>
> > 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.


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.

 
Reply With Quote
 
tamsun
Guest
Posts: n/a
 
      08-12-2006
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?



On 11 Aug 2006 09:01:33 -0700, "Andrew Thompson"
<> wrote:

>tamsun wrote:
>...
>> 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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
XSLT to transform a "flat" XML file into a structured text file R. P. XML 3 06-22-2006 02:26 AM
blocking I/O with javax.xml.parsers.DocumentBuilder.parse() and javax.xml.transform.Transformer.transform() jazzdman@gmail.com Java 1 03-27-2005 06:56 AM
Re: Problem with XSL transform of XML file to dynamic HTML table with fixed columns Marrow XML 0 07-02-2003 09:33 AM
Re: Problem with XSL transform of XML file to dynamic HTML tablewith fixed columns Johannes Koch XML 0 07-02-2003 07:54 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57