Re: how can I create template for manipulating embedded and exter nal style sheet present in the html page? Is it possible?

2004-09-08 Thread Clay Leeds
On Sep 7, 2004, at 10:13 PM, Eldho George wrote:
Hai all
Thanks clay Leeds.
Thank you for your nice reply. I got your idea.But again some
problem.Actually my problem is to create a pdf converter.It is able to
convert  any  web page into pdf.Whenever an external stylesheet 
present in
the html file I want to read that css file and read each value from 
css and
use it with corresponding template.

According to your suggestion, I have to create different attribute set
depending upon the css.I would like to know how can i dynamically 
insert
these attribute set into corresponding template.Classes are also 
present in
the css.How can i solve this problem
I don't know the answer to these questions. I would suspect you would 
want to create one attribute set which holds your 'defaults' 
(font-family, font-size, color, background-color, etc.) and then a 
different attribute-set for each 'class'. You (or someone you hire) can 
probably write something fairly quickly, which will take a CSS file, 
and output an attribute-set. If you do, it would be great if you could 
post it back for others to use.

Web Maestro Clay
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: how can I create template for manipulating embedded and exter nal style sheet present in the html page? Is it possible?

2004-09-08 Thread Eldho George
Hai all
Thanks clay Leeds.
Thank you for your nice reply. I got your idea.But again some
problem.Actually my problem is to create a pdf converter.It is able to
convert  any  web page into pdf.Whenever an external stylesheet present in
the html file I want to read that css file and read each value from css and
use it with corresponding template.

According to your suggestion, I have to create different attribute set
depending upon the css.I would like to know how can i dynamically insert
these attribute set into corresponding template.Classes are also present in
the css.How can i solve this problem



Thanks and Regards

Eldho George
Junior Software Engineer
Ocwen Financial Solution Pvt.Ltd.
Ph:56671234-1050


-Original Message-
From: Clay Leeds [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 07, 2004 11:09 PM
To: [EMAIL PROTECTED]
Subject: Re: how can I create template for manipulating embedded and
external style sheet present in the html page? Is it possible?

On Sep 6, 2004, at 7:06 AM, Eldho George wrote:
> Hi,
>
> I would like to know how can I create template for manipulating 
> embedded and external style sheet present in the html page? Is it 
> possible?
>
> Please help me........please tell me is it possible with 
> xslt+xsl-fo? I already created template for processing inline style 
> attribute.

Is it possible for you to create an attribute-set and use that to 
modify your pages/tables, etc. document-wide? Here's a link which might 
help[1].

BTW, this isn't a tool for 'converting' a CSS file to XSL/XSLT. You 
would have to set up an attribute-set, and then implement it for the 
document using the use-attribute-set attribute.

Hope this helps!

Web Maestro Clay

[1]
http://www.xml.com/lpt/a/2003/06/11/short-xslt.html


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how can I create template for manipulating embedded and external style sheet present in the html page? Is it possible?

2004-09-07 Thread J.Pietschmann
Eldho George wrote:
I would like to know *how can I create template for manipulating 
embedded and external style sheet present in the html page? Is it possible?*
Google for html2fo and/or xhtml2fo. First hit
 http://html2fo.sourceforge.net/
In general, they don't bother to emulate the full pattern
matching process. And please stop posting mails from MS Word.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: how can I create template for manipulating embedded and external style sheet present in the html page? Is it possible?

2004-09-07 Thread Clay Leeds
On Sep 6, 2004, at 7:06 AM, Eldho George wrote:
Hi,
I would like to know how can I create template for manipulating 
embedded and external style sheet present in the html page? Is it 
possible?

Please help meplease tell me is it possible with 
xslt+xsl-fo? I already created template for processing inline style 
attribute.
Is it possible for you to create an attribute-set and use that to 
modify your pages/tables, etc. document-wide? Here's a link which might 
help[1].

BTW, this isn't a tool for 'converting' a CSS file to XSL/XSLT. You 
would have to set up an attribute-set, and then implement it for the 
document using the use-attribute-set attribute.

Hope this helps!
Web Maestro Clay
[1]
http://www.xml.com/lpt/a/2003/06/11/short-xslt.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: how can I create template for manipulating embedded and exter nal style sheet present in the html page? Is it possible?

2004-09-07 Thread Eldho George
Hi mike

Thank you for your reply. Thank you..

Actually my problem is i want to convert a web page into PDF. What is my
logic is i created one servlet.In that servlet
i am reading the content of url(html content).I apply W3C tidy to make it as
xhtml.I created an xsl file using xslt and xsl-fo.
I created template for all the html 4.0 tags and its working properly.(Some
problem with table).Then applying xhtml and xsl to 
XSLTInputHandler of fop and render it to PDF.

My problem is with table only

.I created template for width attribute.


auto
10pt
10pt











But all the time the table will be displayed on the entire page width.
suppose we are creating a table with 2 column.
In html this will be displayed as a small table (depending upon the table
content).But my problem is in PDF it will be displayed 
in entire page width. How can i solve this problem..Please help
me.

Following is the overview of my table layout


auto
10pt
10pt
outset
separate
2px














Thanks in advance
Cheers
george





-Original Message-
From: Mike Trotman [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 06, 2004 9:21 PM
To: [EMAIL PROTECTED]
Subject: Re: how can I create template for manipulating embedded and
external style sheet present in the html page? Is it possible?



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
A quick response as I'm not sure I understand your question - but I
think you're saying you can process all the 'inline' style + other
attributes in an HTML document - but that you want ot be able to
implement CSS class styles in FO->PDF?

If so - that is not easy - particularly as CSS <-> XSL-FO attributes
don't always map straightforwardly and some have different names,
and detecting precedence, context and dealing with multiple CSS
stylesheets is difficult.

A useful utility from RenderX  which may help you to map equivalent
attributes is at http://www.renderx.com/~renderx/portal/fo2html.html.
This maps XSLFO -> HTML - and does a pretty good job.

The way I deal with this problem is to turn the CSS stylesheets into XML
documents - and then add attributes for the XSLFO equivalents.
The structure of this XML depends on how much of the complexity of CSS
you want to capture.)
(this document can the be used to produce the CSS stylesheets as well.)
I then load this document as a parameter when processing and lookup any
formatting for the element / class I am dealing with.
(I find this easier than trying to define fixed attribute sets.)

With XSL / XML based output formatting it is nearly always easier to
have a core XML document from which all other output (including HTML) is
generated.
If your HTML is well formed XML /  XHTML then your task is easier.

FOP 0.20.5 does not suppor table-with-caption - and many other
processors also do not.
FOP 0.20.5 does not support table-layout='auto' (only 'fixed') - and
this is also true of many other processors - so I don't know how you are
getting the table to fit the width of the page.
unless you are specifying that the inline-progression dimension='100%'.

Eldho George wrote:

|  
|
| Hi,
|
|  
|
|  
|
| I would like to know *how can I create template for manipulating
| embedded and external style sheet present in the html page? Is it
| possible?*
|
|  
|
| *Please help meplease tell me is it possible with
| xslt+xsl-fo? I already created template for processing inline style
| attribute.*
|
|  
|
|  
|
| I am working with the project of converting a web Page into PDF.I am
| using FOP.I am creating the formatting object tree using xslt.I
| already create template for most of the html 4.0 tags and everything
| this working perfectly.But I have problem with table .It showing the
| table with entire page width. That means suppose I have created only
| one column, it will occupy the entire page width. Suppose I am using
| width in table, it is not shrinking according to that width. I used
| table attribute as
|
|  
|
|  
|
|  
|
| auto
|
| 10pt
|
| 10pt
|
| outset
|
| separate
|
| 2px
|
|  
|
|  
|
| Another problem is - outset is not working. is
| not working with fop.So I am not use .This will
| create any problem?
|
| I would like to know whether fop will support

Re: how can I create template for manipulating embedded and external style sheet present in the html page? Is it possible?

2004-09-06 Thread Mike Trotman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
A quick response as I'm not sure I understand your question - but I
think you're saying you can process all the 'inline' style + other
attributes in an HTML document - but that you want ot be able to
implement CSS class styles in FO->PDF?
If so - that is not easy - particularly as CSS <-> XSL-FO attributes
don't always map straightforwardly and some have different names,
and detecting precedence, context and dealing with multiple CSS
stylesheets is difficult.
A useful utility from RenderX  which may help you to map equivalent
attributes is at http://www.renderx.com/~renderx/portal/fo2html.html.
This maps XSLFO -> HTML - and does a pretty good job.
The way I deal with this problem is to turn the CSS stylesheets into XML
documents - and then add attributes for the XSLFO equivalents.
The structure of this XML depends on how much of the complexity of CSS
you want to capture.)
(this document can the be used to produce the CSS stylesheets as well.)
I then load this document as a parameter when processing and lookup any
formatting for the element / class I am dealing with.
(I find this easier than trying to define fixed attribute sets.)
With XSL / XML based output formatting it is nearly always easier to
have a core XML document from which all other output (including HTML) is
generated.
If your HTML is well formed XML /  XHTML then your task is easier.
FOP 0.20.5 does not suppor table-with-caption - and many other
processors also do not.
FOP 0.20.5 does not support table-layout='auto' (only 'fixed') - and
this is also true of many other processors - so I don't know how you are
getting the table to fit the width of the page.
unless you are specifying that the inline-progression dimension='100%'.
Eldho George wrote:
|  
|
| Hi,
|
|  
|
|  
|
| I would like to know *how can I create template for manipulating
| embedded and external style sheet present in the html page? Is it
| possible?*
|
|  
|
| *Please help meplease tell me is it possible with
| xslt+xsl-fo? I already created template for processing inline style
| attribute.*
|
|  
|
|  
|
| I am working with the project of converting a web Page into PDF.I am
| using FOP.I am creating the formatting object tree using xslt.I
| already create template for most of the html 4.0 tags and everything
| this working perfectly.But I have problem with table .It showing the
| table with entire page width. That means suppose I have created only
| one column, it will occupy the entire page width. Suppose I am using
| width in table, it is not shrinking according to that width. I used
| table attribute as
|
|  
|
|  
|
|  
|
| auto
|
| 10pt
|
| 10pt
|
| outset
|
| separate
|
| 2px
|
|  
|
|  
|
| Another problem is - outset is not working. is
| not working with fop.So I am not use .This will
| create any problem?
|
| I would like to know whether fop will support
| 
|
|  
|
| I would like to know *how can I create template for manipulating
| embedded and external style sheet present in the html page? Is it
| possible?*
|
|  
|
| *Please help meplease tell me is it possible with
| xslt? I already created template for processing inline style attribute.*
|
|  
|
| Thanks in advance
|
| George
|
|  
|
|  
|
|  
|
| |
|
| **
| This email and any files transmitted with it are confidential and
| intended solely for the use of the individual or entity to whom they
| are addressed. If you have received this email in error please notify
| the system manager.
|
| This footnote also confirms that this email message has been swept by
| MIMEsweeper for the presence of computer viruses.
|
| www.mimesweeper.com
| **
| |

- --
Datalucid Limited
8 Eileen Road
South Norwood
London SE25 5EJ
United Kingdom
/
tel :0208-239-6810
mob: 0794-725-9760
email: [EMAIL PROTECTED]
UK Co. Reg:   4383635
VAT Reg.:   798 7531 60
/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBPIdPe72ghYHWur4RAgrhAJ41r8srH60skFbrzntb4hDUaneQsACdGERP
/AscqsnlmD5I6NbUhaJYKdI=
=hmNf
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


how can I create template for manipulating embedded and external style sheet present in the html page? Is it possible?

2004-09-06 Thread Eldho George








 

Hi,

 

 

I would like to know how can I create template
for manipulating embedded and external style sheet present in the html page? Is it possible?

 

Please help meplease tell me is it possible with xslt+xsl-fo? I
already created template for processing inline style attribute.

 

 

I am working with the project of converting a web Page into PDF.I am
using FOP.I am creating the formatting object tree using xslt.I already create template
for most of the html 4.0 tags and everything this working perfectly.But I have
problem with table .It showing the table with entire page width. That means
suppose I have created only one column, it will occupy the entire page width.
Suppose I am using width in table, it is not shrinking according to that width.
I used table attribute as

 

 

 

auto

10pt

10pt

outset

separate

2px

 

 

Another problem is - outset is not working.
is not working with fop.So I am not use .This will
create any problem?

I would like to know whether fop will support


 

I would like to know how can I create template
for manipulating embedded and external style sheet present in the html page? Is
it possible?

 

Please help meplease tell me is it possible with xslt? I
already created template for processing inline style attribute.

 

Thanks in advance

George

 

 

 





**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**






how can I create template for manipulating embedded and external style sheet present in the html page? Is it possible?

2004-09-06 Thread Eldho George








I would like to know how can I create template
for manipulating embedded and external style sheet present in the html page? Is it possible?

 

Please help meplease

 

Thanks in advance

George

 

 

 





**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**






how can I create template for manipulating embedded and external style sheet present in the html page? Is it possible?

2004-09-06 Thread Eldho George








Hi,

I am working with the project of converting a web Page into PDF.I am
using FOP.I am creating the formatting object tree using xslt.I already create
template for most of the html 4.0 tags and everything this working
perfectly.But I have problem with table .It showing the table with entire page
width. That means suppose I have created only one column, it will occupy the entire
page width. Suppose I am using width in table, it is not shrinking according to
that width. I used table attribute as

 

 

 

auto

10pt

10pt

outset

separate

2px

 

 

Another problem is - outset is not working.
is not working with fop.So I am not use .This will
create any problem?

I would like to know whether fop will support


 

I would like to know how can I create template
for manipulating embedded and external style sheet present in the html page? Is
it possible?

 

Please help meplease

 

Thanks in advance

George

 

 

 










**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**






how can I create template for manipulating embedded and external style sheet present in the html page? Is it possible?

2004-09-06 Thread Eldho George








 

 

 

 

 

 

Hi,

I am working with the project of converting a web Page into PDF.I am
using FOP.I am creating the formatting object tree using xslt.I already create
template for most of the html 4.0 tags and everything this working
perfectly.But I have problem with table .It showing the table with entire page
width. That means suppose I have created only one column, it will occupy the
entire page width. Suppose I am using width in table, it is not shrinking
according to that width. I used table attribute as

 

 

 

auto

10pt

10pt

outset

separate

2px

 

 

Another problem is - outset is not working.
is not working with fop.So I am not use .This will
create any problem?

I would like to know whether fop will support


 

I would like to know how can I create template
for manipulating embedded and external style sheet present in the html page? Is
it possible?

 

Please help meplease

 

Thanks in advance

George

 

 

 



**
This email and any files transmitted with it are
confidential and
intended solely for the use of the individual or
entity to whom they
are addressed. If you have received this email in
error please notify
the system manager.

This footnote also confirms that this email message
has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**





**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**






how can I create template for manipulating embedded and external style sheet present in the html page? Is it possible?

2004-09-03 Thread Eldho George








 

 

 

Hi,

I am working with the project of converting a web Page into PDF.I am
using FOP.I am creating the formatting object tree using xslt.I already create
template for most of the html 4.0 tags and everything this working perfectly.But
I have problem with table .It showing the table with entire page width. That
means suppose I have created only one column, it will occupy the entire page
width. Suppose I am using width in table, it is not shrinking according to that
width. I used table attribute as

 

 

 

<xsl:attribute
name="table-layout">autoxsl:attribute>

<xsl:attribute
name="space-before">10ptxsl:attribute>

<xsl:attribute
name="space-after">10ptxsl:attribute>

<xsl:attribute
name="border-style">outsetxsl:attribute>

<xsl:attribute
name="border-collapse">separatexsl:attribute>

<xsl:attribute
name="border-spacing">2pxxsl:attribute>

 

 

Another problem is - outset is not working.<fo:table-and-caption> is not working with fop.So I am not use <fo:table-and-caption>.This
will create any problem?

I would like to know whether fop will support <fo:table-and-caption>????

 

I would like to know how can I create template
for manipulating embedded and external style sheet present in the html page? Is it possible?

 

Please help meplease

 

Thanks in advance

George

 

 

 





**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**






Re: Is it possible to maintain kerning in FO?

2002-06-16 Thread Jeremias Maerki
Actually, in 0.20.4rc letter-spacing should work now, but only for the
PDF and PS renderers.

On 14.06.2002 21:13:09 Oleg Tkachenko wrote:
> Max Dcosta wrote:
> 
> > Is it possible to maintain kerning in FO?
> In FO yes, it's possible by "letter-spacing" property:
>letter-spacing="2mm">This is a text with 2mm letter-spacing
> 
> But afaik letter-spacing is not implemented in fop yet, fop only able to 
> keep font built-in kerning.
> 
> -- 
> Oleg Tkachenko
> Multiconn International Ltd


Cheers,
Jeremias Maerki



Re: Is it possible to maintain kerning in FO?

2002-06-14 Thread Oleg Tkachenko
Max Dcosta wrote:
Is it possible to maintain kerning in FO?
In FO yes, it's possible by "letter-spacing" property:
This is a text with 2mm letter-spacing
But afaik letter-spacing is not implemented in fop yet, fop only able to 
keep font built-in kerning.

--
Oleg Tkachenko
Multiconn International Ltd


Is it possible to maintain kerning in FO?

2002-06-14 Thread Max Dcosta
Dear Fop Users,

Is it possible to maintain kerning in FO?

Is it necessary to put text-align="left/" in "fo:table element"


please guide me on this my friends.

waiting for your reply on this one

max

Max William D'costa | Interactive Designer | netdecisions
6th Floor, MET Building, Gen. A K Vaidya Chowk, 
Bandra Reclamation, Mumbai 400050, India
t +91 (0)22 644  Ext: 165  f +91 (0)22 655 8048
http://www.netdecisions.com
[EMAIL PROTECTED]



Re: Is it possible ?

2002-05-30 Thread J.Pietschmann
Cyril Rognon wrote:
In order to Write/Print/Read/select protect your document, FOP does not 
do this, simply because it is not part of XSL FO. Yet, you may use 
another Java tool combined with FOP to do this : the iText library.
Sample code:
 http://marc.theaimsgroup.com/?l=fop-dev&m=102002975028427&w=2
J.Pietschmann



Re: Is it possible ?

2002-05-30 Thread Cyril Rognon
Hi Xavier,
as for the 300 dpi I cannot say but you might search the archive of the 
list about this.

In order to Write/Print/Read/select protect your document, FOP does not do 
this, simply because it is not part of XSL FO. Yet, you may use another 
Java tool combined with FOP to do this : the iText library.

You can use it to create a copy of your FOP generated PDF wich you can read 
protect and  print protect and write protect and so on. iText tutorial 
shows you how to do this.

I think someone on the dev-list has done some work to propose a FOP 
extension that uses iText to do this kind of stuff. Once again, you may 
look for it in the achive. Even if you don't use FOP extension, you may use 
iText explicitly after FOP has generated your PDF.

Cyril
At 09:03 30/05/2002 +0200, you wrote:
hello,
Is it possible with fop to get a 300 dpi resolution for a Pdf File ?
Is it possible to write protect, print protect, read protect with a 
password a Pdf File.

If it is, please give me clues.
Xavier



Is it possible ?

2002-05-30 Thread Xavier DAMAY
hello,
Is it possible with fop to get a 300 dpi resolution for a Pdf File ?
Is it possible to write protect, print protect, read protect with a 
password a Pdf File.

If it is, please give me clues.
Xavier



RE: Is it possible?

2002-02-28 Thread Savino, Matt C
I don't see why not. It would be an a lot of work, but not impossible. I
assume you want to fill in the values as well? The only thing I see that I
can't speak for sure about is the background image at the top of the page.
But I guess you could always make the whole header an image if you have to.

Here's a lab report we do in FOP that is not as graphically involved as your
doc, but may give you an idea.

Good luck,
-matt



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 28, 2002 1:13 PM
> To: [EMAIL PROTECTED]
> Subject: Is it possible?
> 
> 
> I'm looking to use fop to render this document.
> I would like to know if is possible to render this document with fop.
> Thanks in advance and i'm sorry for my bad english.
> 



SampleLabReport.pdf
Description: Binary data


Is it possible?

2002-02-28 Thread andrbozz
I'm looking to use fop to render this document.
I would like to know if is possible to render this document with fop.
Thanks in advance and i'm sorry for my bad english.

730cmod.pdf
Description: Adobe PDF document