James Van Etten 19 February 2004 23:56:40 [ permanent link ]
When I convert an HTML page with a table the first column takes up 50% of the table and the other columns are spread out over the other 50%. What am I missing? I have search this list as well as the web and have found no answers.
Thanks Jim
*********************************** This e-mail, including attachments, is intended for the exclusive use of the addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any dissemination, use, distribution or copying is strictly prohibited. If you have received this e-mail in error, please notify me via return e-mail and permanently delete the original and destroy all copies.
------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
I have an HTML table that I wish to convert to PDF. It has between 8 and 13 columns. When I convert using:
// step 2: // we create a writer that listens to the document // and directs a XML-stream to a file PdfWriter.getInstance(document, new FileOutputStream("c:/test.pdf"));
// step 3: we create a parser and set the document handler SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
// step 4: we parse the document parser.parse("c:/bop3.htm", new SAXmyHtmlHandler(document));
as per the instructions the first column takes up half the table and the other columns are split evenly across the second half of the table. No matter what percentage I put in the <td> tag I get the same result. How can I get the table to equally distribute accross the cells.
Thanks Jim
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
I have recieved a solution to my question about cell widths and it works great now. Is there a way to control the size of the font ??
Thanks Jim
Jim VanEtten said:> I have an HTML table that I wish to convert to PDF. It has between 8 and> 13 columns. When I convert using:>
// step 2:> // we create a writer that listens to the document> // and directs a XML-stream to a file> PdfWriter.getInstance(document, new FileOutputStream("c:/test.pdf"));>
// step 3: we create a parser and set the document handler> SAXParser parser = SAXParserFactory.newInstance().newSAXParser();>
// step 4: we parse the document> parser.parse("c:/bop3.htm", new SAXmyHtmlHandler(document));>
as per the instructions the first column takes up half the table and the> other columns are split evenly across the second half of the table. No> matter what percentage I put in the <td> tag I get the same result. How> can I get the table to equally distribute accross the cells.>
Thanks> Jim
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
I have recieved a solution to my question about cell widths and it works> great now. Is there a way to control the size of the font ??
Some tags have a "size" attribute. Check the code and/or the tutorial for more info. br, Bruno
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
The PDF is successfully created, but the elements are not aligned as in the html document, kindly help me out to achieve the same, responses to pmdeepak@cordys.com is highly appreciated.
********************************************************************** The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error.
I have an HTML table that I wish to convert to PDF. It has between 8 and 13 columns. When I convert using:
// step 2: // we create a writer that listens to the document // and directs a XML-stream to a file PdfWriter.getInstance(document, new FileOutputStream("c:/test.pdf"));
// step 3: we create a parser and set the document handler SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
// step 4: we parse the document parser.parse("c:/bop3.htm", new SAXmyHtmlHandler(document));
as per the instructions the first column takes up half the table and the other columns are split evenly across the second half of the table. No matter what percentage I put in the <td> tag I get the same result. How can I get the table to equally distribute accross the cells?
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Luiz Fernando Rodrigues 18 June 2004 23:30:43 [ permanent link ]
Hi,
Does anyone know a way to transform html docs into pdf? In the FAQ section of iText they recommended a tool named HtmlDoc but it doesn’t work very well.
Thanks, Luiz
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.707 / Virus Database: 463 - Release Date: 15/6/2004
--- Luiz Fernando Rodrigues <lfrodrigues@teccomm.les.inf.puc-rio.br> wrote:> Hi,>
Does anyone know a way to transform html> docs into pdf? In> the FAQ section of iText they recommended a tool> named HtmlDoc but it> doesnt work very well.>
Thanks,> Luiz>
---> Outgoing mail is certified Virus Free.> Checked by AVG anti-virus system> (http://www.grisoft.com).> Version: 6.0.707 / Virus Database: 463 - Release> Date: 15/6/2004>
------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
Caballero Caballero 23 June 2004 12:30:04 [ permanent link ]
I have tried to use NesoneHtmlParser instead of HtmlParser but I have the same problem with width columns. I have downloaded the cnmkorea-iText.jar, cnmkorea-iTextXML.jar, cnmkorea-html2pdf.jar from FCKitext.war from pdfone.net. It is correct? It doesnВґt work?
--- Luiz Fernando Rodrigues <lfrodrigues@teccomm.les.inf.puc-rio.br> wrote:> Hi,>
Does anyone know a way to transform html> docs into pdf? In> the FAQ section of iText they recommended a tool> named HtmlDoc but it> doesnt work very well.>
Thanks,> Luiz>
---> Outgoing mail is certified Virus Free.> Checked by AVG anti-virus system> (http://www.grisoft.com).> Version: 6.0.707 / Virus Database: 463 - Release> Date: 15/6/2004>
------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
After u resize the table and images..some width/height information is genereate style="ZINDEX:123;LEFT=123;TOP:123;WIDTH:231;HEIGHT:34"
This is the input for better width and height at PDF output (look almost the same)
dun'know it can answer your questions or not!!!
I did not apply this feature for relative positioning
cheers
vu ngoc tan
http://www.pdfone.net http://www.vietclever.com http://www.sinhcafe.net --- "Caballero Caballero, Jose" <jose.caballero.exts@juntadeandalucia.es> wrote:> I have tried to use NesoneHtmlParser instead of> HtmlParser but I have the> same problem with width columns. > I have downloaded the cnmkorea-iText.jar,> cnmkorea-iTextXML.jar,> cnmkorea-html2pdf.jar from FCKitext.war from> pdfone.net. It is correct? It> doesnt work?>
thankss>
Pepe Caballero> Ingeniero Informatica > -----Mensaje original-----> De: taa boo [mailto:dangtronghop@yahoo.com] > Enviado el: mi?coles, 23 de junio de 2004 9:40> Para: Luiz Fernando Rodrigues;> itext-questions@lists.sourceforge.net> Asunto: Re: [iText-questions] HTML to PDF>
Hi,>
we already solved this problem in Html2Pdf module at> http://www.pdfone.net ==> go there and download> NesOneSAXiTextHandler >
--- Luiz Fernando Rodrigues> <lfrodrigues@teccomm.les.inf.puc-rio.br> wrote:> > Hi,> >
Does anyone know a way to transform> html> > docs into pdf? In> > the FAQ section of iText they recommended a tool> > named HtmlDoc but it> > doesnt work very well.> >
Thanks,> > Luiz> >
---> > Outgoing mail is certified Virus Free.> > Checked by AVG anti-virus system> > (http://www.grisoft.com).> > Version: 6.0.707 / Virus Database: 463 - Release> > Date: 15/6/2004> >
-------------------------------------------------------> This SF.Net email sponsored by Black Hat Briefings &> Training.> Attend Black Hat Briefings & Training, Las Vegas> July 24-29 - > digital self defense, top technical experts, no> vendor pitches, > unmatched networking opportunities. Visit> www.blackhat.com> _______________________________________________> iText-questions mailing list> iText-questions@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/itext-questions>
-------------------------------------------------------> This SF.Net email sponsored by Black Hat Briefings &> Training.> Attend Black Hat Briefings & Training, Las Vegas> July 24-29 -> digital self defense, top technical experts, no> vendor pitches,> unmatched networking opportunities. Visit> www.blackhat.com> _______________________________________________> iText-questions mailing list> iText-questions@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/itext-questions>
------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
Luiz Fernando Rodrigues 24 June 2004 20:59:18 [ permanent link ]
Hi,
I tried your handler but I can't make it works. Actually nor yours nor the itext handler (SAXmyHtmlHandler). I'm trying to use the same code of example 6 in the chapter 7 of the tutorial. All I got was an empty pdf file. Do you know why?
I'll copy the code fragment:
PdfWriter.getInstance(document, new FileOutputStream("Chap0706.pdf")); SAXParser parser = SAXParserFactory.newInstance().newSAXParser(); parser.parse("Chap0702.html", new SAXmyHtmlHandler(document));
thanks, Luiz
-----Original Message----- From: itext-questions-admin@lists.sourceforge.net [mailto:itext-questions-admin@lists.sourceforge.net] On Behalf Of taa boo Sent: quarta-feira, 23 de junho de 2004 04:40 To: Luiz Fernando Rodrigues; itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] HTML to PDF
Hi,
we already solved this problem in Html2Pdf module at http://www.pdfone.net ==> go there and download NesOneSAXiTextHandler
--- Luiz Fernando Rodrigues <lfrodrigues@teccomm.les.inf.puc-rio.br> wrote:> Hi,>
Does anyone know a way to transform html> docs into pdf? In> the FAQ section of iText they recommended a tool> named HtmlDoc but it> doesn’t work very well.>
Thanks,> Luiz>
---> Outgoing mail is certified Virus Free.> Checked by AVG anti-virus system> (http://www.grisoft.com).> Version: 6.0.707 / Virus Database: 463 - Release> Date: 15/6/2004>
------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions
--- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.708 / Virus Database: 464 - Release Date: 18/6/2004
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.709 / Virus Database: 465 - Release Date: 22/6/2004
------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
I tried your handler but I can't make it works.> Actually nor yours nor> the itext handler (SAXmyHtmlHandler). I'm trying to> use the same code of> example 6 in the chapter 7 of the tutorial. All I> got was an empty pdf> file. Do you know why?>
-----Original Message-----> From: itext-questions-admin@lists.sourceforge.net> [mailto:itext-questions-admin@lists.sourceforge.net]> On Behalf Of taa> boo> Sent: quarta-feira, 23 de junho de 2004 04:40> To: Luiz Fernando Rodrigues;> itext-questions@lists.sourceforge.net> Subject: Re: [iText-questions] HTML to PDF>
Hi,>
we already solved this problem in Html2Pdf module at> http://www.pdfone.net ==> go there and download> NesOneSAXiTextHandler >
--- Luiz Fernando Rodrigues> <lfrodrigues@teccomm.les.inf.puc-rio.br> wrote:> > Hi,> >
Does anyone know a way to transform> html> > docs into pdf? In> > the FAQ section of iText they recommended a tool> > named HtmlDoc but it> > doesnt work very well.> >
Thanks,> > Luiz> >
---> > Outgoing mail is certified Virus Free.> > Checked by AVG anti-virus system> > (http://www.grisoft.com).> > Version: 6.0.707 / Virus Database: 463 - Release> > Date: 15/6/2004> >
-------------------------------------------------------> This SF.Net email sponsored by Black Hat Briefings &> Training.> Attend Black Hat Briefings & Training, Las Vegas> July 24-29 - > digital self defense, top technical experts, no> vendor pitches, > unmatched networking opportunities. Visit> www.blackhat.com> _______________________________________________> iText-questions mailing list> iText-questions@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/itext-questions>
---> Incoming mail is certified Virus Free.> Checked by AVG anti-virus system> (http://www.grisoft.com).> Version: 6.0.708 / Virus Database: 464 - Release> Date: 18/6/2004>
---> Outgoing mail is certified Virus Free.> Checked by AVG anti-virus system> (http://www.grisoft.com).> Version: 6.0.709 / Virus Database: 465 - Release> Date: 22/6/2004>
------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
As seen on many sites, I want to add a "pdf-version" - function to my site. So the content has to convert from html to pdf on the fly. I tested "HTML2DOC", but there is no support for CSS. Has anyone experiences with this or knows other tools?
Thanks Lutz
--- You are currently subscribed to farcry-dev as: gcf-farcry-dev-Uylq5CNFT+jYtjvyW6yDsg@public.gmane.org To unsubscribe send a blank email to leave-farcry-dev-5105H-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org Aussie Macromedia Developers: http://lists.daemon.com.au/
-----Original Message----- From: Lutz Biederbeck [mailto:Lutz.Biederbeck-tz0N0cR1dMU@public.gmane.org] Sent: Wednesday, July 07, 2004 4:12 PM To: FarCry Developers Subject: [farcry-dev] HTML to PDF
As seen on many sites, I want to add a "pdf-version" - function to my site. So the content has to convert from html to pdf on the fly. I tested "HTML2DOC", but there is no support for CSS. Has anyone experiences with this or knows other tools?
Thanks Lutz
--- You are currently subscribed to farcry-dev as: whiterod.david-thPee4JWKF1t6WZnHsqEgQ@public.gmane.org To unsubscribe send a blank email to leave-farcry-dev-5105H-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org Aussie Macromedia Developers: http://lists.daemon.com.au/
--- You are currently subscribed to farcry-dev as: gcf-farcry-dev-Uylq5CNFT+jYtjvyW6yDsg@public.gmane.org To unsubscribe send a blank email to leave-farcry-dev-5105H-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org Aussie Macromedia Developers: http://lists.daemon.com.au/
-----Original Message-----> From: Lutz Biederbeck [mailto:Lutz.Biederbeck-tz0N0cR1dMU@public.gmane.org]> Sent: Wednesday, July 07, 2004 4:12 PM> To: FarCry Developers> Subject: [farcry-dev] HTML to PDF>
As seen on many sites, I want to add a "pdf-version" - function to my> site. So the content has to convert from html to pdf on the fly. I tested> "HTML2DOC", but there is no support for CSS. Has anyone experiences with> this or knows other tools?>
Thanks Lutz>
---> You are currently subscribed to farcry-dev as:> whiterod.david-thPee4JWKF1t6WZnHsqEgQ@public.gmane.org>
To unsubscribe send a blank email to> leave-farcry-dev-5105H-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org> Aussie Macromedia Developers: http://lists.daemon.com.au/>
---> You are currently subscribed to farcry-dev as: sean.edwards-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> To unsubscribe send a blank email to leave-farcry-dev-5105H-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org> Aussie Macromedia Developers: http://lists.daemon.com.au/>
--- You are currently subscribed to farcry-dev as: gcf-farcry-dev-Uylq5CNFT+jYtjvyW6yDsg@public.gmane.org To unsubscribe send a blank email to leave-farcry-dev-5105H-VCrIQ7D8lE6uI5gGy/GxD7pzq4S04n8Q@public.gmane.org Aussie Macromedia Developers: http://lists.daemon.com.au/
Is there a way by which I can convert given HTML to PDF using iText? Basically, I want to add an export button to my JSP's, that'll export the content area as a pdf.
I would like to know if the IText API support the HTML to PDF conversion? For, example I have index.html then when I call IText API, it will convert html into a PDF file.
Thanks,
John
------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
Neil Robertson-Ravo 13 June 2005 19:02:22 [ permanent link ]
It is also not very good at complex HTML.
Probably loads out there.....have a look for iText or some other Java based tool.
-----Original Message----- From: Rey Bango [mailto:rey-i/B4upybFHxWk0Htik3J/w@public.gmane.org] Sent: 13 June 2005 16:04 To: CF-Talk Subject: HTML to PDF
Hi guys. I need a solution that will let me build a dynamic HTML page and output it to PDF. I know of ActivPDF but it's currently priced at $1,500 for their webgrabber product.
We're currently on CFMX 6.1.
Any alternatives?
Rey...
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Hi guys. I need a solution that will let me build a dynamic HTML page and output it to PDF. I know of ActivPDF but it's currently priced at $1,500 for their webgrabber product.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Upgrade to 7.0 and you'll pay less and get a whole bunch more functionality!
-----Original Message----- From: Rey Bango [mailto:rey-i/B4upybFHxWk0Htik3J/w@public.gmane.org] Sent: Monday, June 13, 2005 11:04 AM To: CF-Talk Subject: HTML to PDF
Hi guys. I need a solution that will let me build a dynamic HTML page and output it to PDF. I know of ActivPDF but it's currently priced at $1,500 for their webgrabber product.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67
-----Original Message----- From: Rey Bango [mailto:rey-i/B4upybFHxWk0Htik3J/w@public.gmane.org] Sent: Monday, 13 June 2005 11:04 To: CF-Talk Subject: HTML to PDF
Hi guys. I need a solution that will let me build a dynamic HTML page and output it to PDF. I know of ActivPDF but it's currently priced at $1,500 for their webgrabber product.
We're currently on CFMX 6.1.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67
On 6/13/05, Rey Bango <rey-i/B4upybFHxWk0Htik3J/w@public.gmane.org> wrote: >
Hi guys. I need a solution that will let me build a dynamic HTML page> and output it to PDF. I know of ActivPDF but it's currently priced at> $1,500 for their webgrabber product.>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application
We use PDFLib (including PDI) which currently is running $900. It is licensed on a per cpu basis with discounts for multi-cpu environments.
-Mark
On 6/13/05, Rey Bango <rey-i/B4upybFHxWk0Htik3J/w@public.gmane.org> wrote:> Hi guys. I need a solution that will let me build a dynamic HTML page> and output it to PDF. I know of ActivPDF but it's currently priced at> $1,500 for their webgrabber product.>
On 6/13/05, Rey Bango <rey-i/B4upybFHxWk0Htik3J/w@public.gmane.org> wrote: > >
Hi guys. I need a solution that will let me build a dynamic HTML page> > and output it to PDF. I know of ActivPDF but it's currently priced at > > $1,500 for their webgrabber product.> >
hehe. Thanks Calvin. Is CFDocument stable? I thought it was a bit quirky at times?
Rey...
Calvin Ward wrote:> Upgrade to 7.0 and you'll pay less and get a whole bunch more functionality!> >
-----Original Message-----> From: Rey Bango [mailto:rey-i/B4upybFHxWk0Htik3J/w@public.gmane.org] > Sent: Monday, June 13, 2005 11:04 AM> To: CF-Talk> Subject: HTML to PDF>
Hi guys. I need a solution that will let me build a dynamic HTML page and> output it to PDF. I know of ActivPDF but it's currently priced at $1,500 for> their webgrabber product.>
-----Original Message-----> From: Rey Bango [mailto:rey-i/B4upybFHxWk0Htik3J/w@public.gmane.org] > Sent: Monday, 13 June 2005 11:04 > To: CF-Talk> Subject: HTML to PDF>
Hi guys. I need a solution that will let me build a dynamic HTML page> and output it to PDF. I know of ActivPDF but it's currently priced at> $1,500 for their webgrabber product.>
We're currently on CFMX 6.1.>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67
On 6/13/05, Rey Bango <rey-i/B4upybFHxWk0Htik3J/w@public.gmane.org> wrote: >
Hi guys. I need a solution that will let me build a dynamic HTML page>>and output it to PDF. I know of ActivPDF but it's currently priced at>>$1,500 for their webgrabber product.>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Thanks Damon. The thing is that we're running on CFMX 6.1 but I'm going to bookmark these links for future use.
Rey.,
dcooper-14osZcCZf762oZ/6fjIToQ@public.gmane.org dcooper-14osZcCZf762oZ/6fjIToQ@public.gmane.org wrote:> A few intro/demos of the CFDOCUMENT feature and creating printable HTML output in CFMX7 can be found here:>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Say, in one of our projects, cfdocument slices text and images in half at page breaks... Why is that?
- Calvin
-----Original Message----- From: dcooper-14osZcCZf762oZ/6fjIToQ@public.gmane.org dcooper-14osZcCZf762oZ/6fjIToQ@public.gmane.org [mailto:dcooper-14osZcCZf762oZ/6fjIToQ@public.gmane.org] Sent: Monday, June 13, 2005 12:19 PM To: CF-Talk Subject: HTML to PDF
A few intro/demos of the CFDOCUMENT feature and creating printable HTML output in CFMX7 can be found here:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67
On 6/13/05, Rey Bango <rey-i/B4upybFHxWk0Htik3J/w@public.gmane.org> wrote:> >
Hi guys. I need a solution that will let me build a dynamic HTML page> >>and output it to PDF. I know of ActivPDF but it's currently priced at> >>$1,500 for their webgrabber product.> >>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application
dcooper-14osZcCZf762oZ/6fjIToQ @ public . gmane . org dcooper-14osZcCZf762oZ/6fjIToQ @ public . gmane . org 15 June 2005 02:57:43 [ permanent link ]
Hmmm...this could be a known issue where if a table cell extends across pages, long text or images in that table cell can get cut off if CFDOC is doing auto-page breaking. It's on our radar to look at in the future, as is table header cell auto-duplication across pages when page breaks are encountered before a table is closed.
The workaround can be to do the break using the CFDOC subtags, and things should render properly.
HTH
Say, in one of our projects, cfdocument slices text and images in half at>page breaks... Why is that?>
- Calvin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application
dcooper-14osZcCZf762oZ/6fjIToQ @ public . gmane . org dcooper-14osZcCZf762oZ/6fjIToQ @ public . gmane . org 15 June 2005 03:00:11 [ permanent link ]
Not sure what "complex HTML" is, but full HTML 4.01 and CSS 1 and 2 are supported. If a browser can render it, we liely can as well. No HTML->XHTML re-formatting is required.
It is also not very good at complex HTML.>
Probably loads out there.....have a look for iText or some other Java based>tool.>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application
The challeng is it's not so easy to break as we don't know the length of the content ahead of time, or even if there is an image, much less where the image is in the content (this is all CMS type stuff).
- Calvin
-----Original Message----- From: dcooper-14osZcCZf762oZ/6fjIToQ@public.gmane.org dcooper-14osZcCZf762oZ/6fjIToQ@public.gmane.org [mailto:dcooper-14osZcCZf762oZ/6fjIToQ@public.gmane.org] Sent: Tuesday, June 14, 2005 6:58 PM To: CF-Talk Subject: RE: HTML to PDF
Hmmm...this could be a known issue where if a table cell extends across pages, long text or images in that table cell can get cut off if CFDOC is doing auto-page breaking. It's on our radar to look at in the future, as is table header cell auto-duplication across pages when page breaks are encountered before a table is closed.
The workaround can be to do the break using the CFDOC subtags, and things should render properly.
HTH
Say, in one of our projects, cfdocument slices text and images in half >at page breaks... Why is that?>
- Calvin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Our user group did a presentation last night and our user group site home page didn't come across well (http://www.jaxfusion.org/) using cfhttp and cfdocument. It actually only showed the amazon image in the PDF on the first page!
Conversely, if you click the pretty validate button on that site, it does validate as HTML 4.01 (the CSS validates as well).
- Calvin
-----Original Message----- From: dcooper-14osZcCZf762oZ/6fjIToQ@public.gmane.org dcooper-14osZcCZf762oZ/6fjIToQ@public.gmane.org [mailto:dcooper-14osZcCZf762oZ/6fjIToQ@public.gmane.org] Sent: Tuesday, June 14, 2005 7:00 PM To: CF-Talk Subject: RE: HTML to PDF
Not sure what "complex HTML" is, but full HTML 4.01 and CSS 1 and 2 are supported. If a browser can render it, we liely can as well. No HTML->XHTML re-formatting is required.
It is also not very good at complex HTML.>
Probably loads out there.....have a look for iText or some other Java >based tool.>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Neil Robertson-Ravo 15 June 2005 13:10:44 [ permanent link ]
Hmmm, I would have to test this again but on early tests it doe not like complex table layouts or advanced CSS.
-----Original Message----- From: dcooper-14osZcCZf762oZ/6fjIToQ@public.gmane.org dcooper-14osZcCZf762oZ/6fjIToQ@public.gmane.org [mailto:dcooper-14osZcCZf762oZ/6fjIToQ@public.gmane.org] Sent: 15 June 2005 00:00 To: CF-Talk Subject: RE: HTML to PDF
Not sure what "complex HTML" is, but full HTML 4.01 and CSS 1 and 2 are supported. If a browser can render it, we liely can as well. No HTML->XHTML re-formatting is required.
It is also not very good at complex HTML.>
Probably loads out there.....have a look for iText or some other Java based>tool.>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67
dcooper-14osZcCZf762oZ/6fjIToQ @ public . gmane . org dcooper-14osZcCZf762oZ/6fjIToQ @ public . gmane . org 15 June 2005 15:14:39 [ permanent link ]
You'll want to make sure you have resolveURL set for the CFHTTP call, that you have background images enabled for CFDOCUMENT, and watch the iframes on that page. I'll take a look at the result of this page in CFDOC later today, but those are a few tings I can think of off the top of my head. Also, if you're going after images or other assets from behind a proxy, you need to setup CFDOC to know about it to traverse the proxy on the way to resolving the assets.
I'll post back ater today...
Our user group did a presentation last night and our user group site home>page didn't come across well (http://www.jaxfusion.org/) using cfhttp and>cfdocument. It actually only showed the amazon image in the PDF on the first>page!>
Conversely, if you click the pretty validate button on that site, it does>validate as HTML 4.01 (the CSS validates as well).>
- Calvin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67
dcooper-14osZcCZf762oZ/6fjIToQ @ public . gmane . org dcooper-14osZcCZf762oZ/6fjIToQ @ public . gmane . org 15 June 2005 15:18:45 [ permanent link ]
Yeah, tracking row counts in table rendering sometimes is an imprecise science, but I've seen it done with good results. It's a little discocerting for users to split onto a new page without new headers re-rendered on printed copy anyway, so oming up with a counter, ending the tabel and re-starting the table on the next page is probably a good thing to do for the best user experience anyway.
Perhaps someone here could share their code with splitting tables at page breaks...
Damon,>
Thanks for responding!>
The challeng is it's not so easy to break as we don't know the length of the>content ahead of time, or even if there is an image, much less where the>image is in the content (this is all CMS type stuff).>
- Calvin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67
I did follow up on this and found there was only a single table surrounding the content in question, everything inside the single table was done with h1, p, etc. Removing that surrounding table didn't seem to change anything, I'm going to tinker a bit more though.
- Calvin
-----Original Message----- From: dcooper-14osZcCZf762oZ/6fjIToQ@public.gmane.org dcooper-14osZcCZf762oZ/6fjIToQ@public.gmane.org [mailto:dcooper-14osZcCZf762oZ/6fjIToQ@public.gmane.org] Sent: Wednesday, June 15, 2005 7:19 AM To: CF-Talk Subject: RE: HTML to PDF
Yeah, tracking row counts in table rendering sometimes is an imprecise science, but I've seen it done with good results. It's a little discocerting for users to split onto a new page without new headers re-rendered on printed copy anyway, so oming up with a counter, ending the tabel and re-starting the table on the next page is probably a good thing to do for the best user experience anyway.
Perhaps someone here could share their code with splitting tables at page breaks...
Damon,>
Thanks for responding!>
The challeng is it's not so easy to break as we don't know the length >of the content ahead of time, or even if there is an image, much less >where the image is in the content (this is all CMS type stuff).>
- Calvin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67
dcooper-14osZcCZf762oZ/6fjIToQ @ public . gmane . org dcooper-14osZcCZf762oZ/6fjIToQ @ public . gmane . org 16 June 2005 21:06:53 [ permanent link ]
Here's the answer to this one: what you're seeing is the rendering of the iFrame contents only. If you remove the embedded iframe from this page, it renders fine.
Support for iFrames is enhancement request #54932, FYI.
HTH
Damon
Our user group did a presentation last night and our user group site home>page didn't come across well (http://www.jaxfusion.org/) using cfhttp and>cfdocument. It actually only showed the amazon image in the PDF on the first>page!>
Conversely, if you click the pretty validate button on that site, it does>validate as HTML 4.01 (the CSS validates as well).>
- Calvin >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67
dcooper-14osZcCZf762oZ/6fjIToQ @ public . gmane . org dcooper-14osZcCZf762oZ/6fjIToQ @ public . gmane . org 16 June 2005 21:29:07 [ permanent link ]
For that matter, actual browsers themseleves have some differences in implementation and rendering complex table layouts and CSS.
For the most part, the I think you'll find the HTML 4.01 and CSS 1 and 2 support is very good in CFDOCUMENT and far more complete than any other solution, IMO.
HTH
Damon
Hmmm, I would have to test this again but on early tests it doe not like>complex table layouts or advanced CSS.>
-----Original Message----->From: dcooper-14osZcCZf762oZ/6fjIToQ@public.gmane.org dcooper-14osZcCZf762oZ/6fjIToQ@public.gmane.org>[mailto:dcooper-14osZcCZf762oZ/6fjIToQ@public.gmane.org] >Sent: 15 June 2005 00:00>To: CF-Talk>Subject: RE: HTML to PDF>
Not sure what "complex HTML" is, but full HTML 4.01 and CSS 1 and 2 are>supported. If a browser can render it, we liely can as well. No>HTML->XHTML re-formatting is required.>
It is also not very good at complex HTML.>>
Probably loads out there.....have a look for iText or some other Java based>>tool.>>
Still not having much luck with the sliced at page break images and text though.
- Calvin
-----Original Message----- From: dcooper-14osZcCZf762oZ/6fjIToQ@public.gmane.org dcooper-14osZcCZf762oZ/6fjIToQ@public.gmane.org [mailto:dcooper-14osZcCZf762oZ/6fjIToQ@public.gmane.org] Sent: Thursday, June 16, 2005 1:07 PM To: CF-Talk Subject: RE: HTML to PDF
Here's the answer to this one: what you're seeing is the rendering of the iFrame contents only. If you remove the embedded iframe from this page, it renders fine.
Support for iFrames is enhancement request #54932, FYI.
HTH
Damon
Our user group did a presentation last night and our user group site >home page didn't come across well (http://www.jaxfusion.org/) using >cfhttp and cfdocument. It actually only showed the amazon image in the >PDF on the first page!>
Conversely, if you click the pretty validate button on that site, it >does validate as HTML 4.01 (the CSS validates as well).>
- Calvin>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67
dcooper-14osZcCZf762oZ/6fjIToQ @ public . gmane . org dcooper-14osZcCZf762oZ/6fjIToQ @ public . gmane . org 16 June 2005 23:09:28 [ permanent link ]
If you have a repro case, BTW, shoot it at me offline and I'd like to check it out.
But for manual breaking, the idea is you'll want use cfdocumentitem type="pagebreak" in your cfloop or whatever you're using after closing the table tag, then re-open the table tag after the page break.
How dynamic the amount of data is that's being output in a particular doc table (affecting table row height), affects the amount of work required to close the table by page end and startup with a new table after issuing a page break.
The simplest case, of course, is if you have a case where table row heights don't vary wildly, and you can simply row-count and issue a page break after "N" rows.
Embedded tables, etc can add complexity of course.
Automatically closing open tables at page break time and reprinting headers is on our enhancement list as well (#59306), but didn't make it into CFMX7 (maybe next time
HTH
Damon
Thanks Damon!>
Still not having much luck with the sliced at page break images and text>though.>
- Calvin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Ok. I have asked this question before but it seems as though no one has an answer so I'll try and ask it again. Is there anyway to write and HTML string to the PDF document? I don't want the HTML tags to appear in the document and I want to keep the HTML formatting. Here is the scenario:
1) User enters text into a RTB(rich text box) and this data is stored in a field in an associated table in SQL Server 2000. 2) User decides he/she wants to create a pdf document from the data they entered in the admin form and chooses the text to be inserted into the PDF document (this is the text they entered in the RTB) 3) When they click "Create" I need to be able to retrieve this text (which has HTML tags in it) and write it to the PDF document on the appropriate page without the tags but keeping the formatting.
I tried to write the data to an HTML document and then parse it into a pdf document but this proved fruitless since a) the HtmlWriter just regurgitated the text complete with tags b) I keep getting a Coverter error when trying to parse any html document.
Need help on this if anyone has an idea. Thanks alot for any help recieved.
----- Original Message ----- From: "Lee, Ashley" <Ashley.Lee@intgroup.com> To: <itext-questions@lists.sourceforge.net> Sent: Thursday, August 18, 2005 11:19 PM Subject: [iText-questions] HTML to PDF
Ok. I have asked this question before but it seems as though no one has an answer so I'll try and ask it again. Is there anyway to write and HTML string to the PDF document? I don't want the HTML tags to appear in the document and I want to keep the HTML formatting. Here is the scenario:
1) User enters text into a RTB(rich text box) and this data is stored in a field in an associated table in SQL Server 2000. 2) User decides he/she wants to create a pdf document from the data they entered in the admin form and chooses the text to be inserted into the PDF document (this is the text they entered in the RTB) 3) When they click "Create" I need to be able to retrieve this text (which has HTML tags in it) and write it to the PDF document on the appropriate page without the tags but keeping the formatting.
I tried to write the data to an HTML document and then parse it into a pdf document but this proved fruitless since a) the HtmlWriter just regurgitated the text complete with tags b) I keep getting a Coverter error when trying to parse any html document.
Need help on this if anyone has an idea. Thanks alot for any help recieved.
Ashley Lee
------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
I've problem to convert html to pdf. I've tried to use HTMLWorker or HTMLParser. With HTMLWorker I get a message like "Document without any page", instead with the HTMLParser I get error with egrave (ГЁ) and ;nbsp. Before to use these 2 classes, I use JTiny and the html looks regular. Can anyone explain how to use one of these classes or also both? I'd like to see some pieces of working code and html too, because I know how to trasform "hello world"
Stefano
------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
From: itext-questions-admin@lists.sourceforge.net [mailto:itext-questions-admin@lists.sourceforge.net] On Behalf Of Luciano Rodrigues Sent: Tuesday, January 10, 2006 10:27 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] HTML to PDF
I need to convert a HTML file to PDF file.
How do I do this? Why my HTML file use encoding="ISO-8859-1".
From: itext-questions-admin@lists.sourceforge.net [mailto:itext-questions-admin@lists.sourceforge.net] On Behalf Of Luciano Rodrigues Sent: Tuesday, January 10, 2006 10:27 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] HTML to PDF
I need to convert a HTML file to PDF file.
How do I do this? Why my HTML file use encoding="ISO-8859-1".
Paulo Soares 10 January 2006 22:57:32 [ permanent link ]
If you have xml there's encoding information. If you have html you may or may not have encoding information and if you have is a lot down in the file as a "<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">". You'll have to scan the file looking for this and reopen the file in a Reader with the correct encoding.
----- Original Message ----- From: "Luciano Rodrigues" <LRodrigues@unisinos.br> To: <bill@bearprinting.com>; <itext-questions@lists.sourceforge.net> Sent: Tuesday, January 10, 2006 7:21 PM Subject: RE: [iText-questions] HTML to PDF
Thanks!
I see there! But I dont found one example for my case.
The enconding 'ISO-8859-1' is my problem, because result error 'Invalid byte 2 of 3-byte UTF-8 sequence.'
My text is in Portuguese, I have text 'ГЈГ§ГГіГЄ' for example, because this I need enconding ='ISO-8859-1'
From: itext-questions-admin@lists.sourceforge.net [mailto:itext-questions-admin@lists.sourceforge.net] On Behalf Of Luciano Rodrigues Sent: Tuesday, January 10, 2006 10:27 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] HTML to PDF
I need to convert a HTML file to PDF file.
How do I do this? Why my HTML file use encoding="ISO-8859-1".
------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
Luciano Rodrigues 11 January 2006 13:26:09 [ permanent link ]
Identificaзгo sumбria dos conteъdos
a disciplina pretende contribuir para a reflexгo crнtica sobre os grupos sociais, as sociedades, o tempo, e o espaзo a partir de diferentes pressupostos teуrico-metodolуgicos.
Objetivos da disciplina
* problematizar o campo de saber denominado estudos sociais, considerando a forma como esse campo tem se mostrado e o papel que tem exercido nos currнculos das escolas brasileiras, ao longo da nossa histуria;
* questionar os conceitos de espaзo/tempo, territуrio, memуria, grupo social, poder, sociedade em rede, natureza, lugar, identidade, representaзгo, cidadania e йtica em diferentes enfoques epistemolуgicos e pedagуgicos, buscando fundamentos adequados ao estudo da dinвmica do meio e аrepresentaзгo da realidade;
* examinar propostas didбtico-pedagуgicas que vem sendo desenvolvidas nas diferentes escolas da comunidade, emitindo parecer fundamentado;
* reconstruir, com base na metodologia da pesquisa, uma nova proposta de educaзгo em estudos sociais, utilizando de modo crнtico, os referenciais da realidade vivenciada no nнvel de lugar da escola e os referenciais teуrico-epistemolуgicos desenvolvidos ao longo do curso.
Exigкncias prйvias de conhecimentos e habilidades
* domнnio da estrutura bбsica da argumentaзгo;
* conhecimento dos conceitos fundamentais sobre o currнculo, a aprendizagem e a sociologia da educaзгo;
* conhecimentos gerais acerca da historiografia do rio grande do sul e da cultura brasileira.
Padrхes mнnimos de desempenho
* capacidade de refletir sobre a natureza do ensino de estudos sociais na escola bбsica;
* competкncia para desenvolver atividades para o ensino de estudos sociais, fundamentadas teoricamente.
Conteъdos programбticos
1. objetivos do ensino de estudos sociais na educaзгo bбsica;
2. fundamentos epistemolуgicos, metodolуgicos e pedagуgicos relacionados com o processo de construзгo e reconstruзгo do conhecimento em estudos sociais;
3. problemбtica doprocesso de aproximaзгo epistemolуgica entre metodologias de investigaзгo e metodologias de ensino/educaзгo dos estudos sociais;
4. problematizaзгo dos conceitos de espaзo, tempo, sociedade, poder, lugar, identidade, globalizaзгo, cotidianidade;
5. processo de construзгo, pelos sujeitos, das noзхes de sociedade, tempo e espaзo, a partir de uma determinada perspectiva teуrica;
6. anбlise do livro didбtico.
Metodologias, tйcnicas e recursos de ensino e de avaliaзгo de aprendizagem
Paulo Soares 11 January 2006 13:56:42 [ permanent link ]
I understand your problem and I gave you the solution. Here's an hardcoded solution:
SAXParser parser = SAXParserFactory.newInstance().newSAXParser(); InputSource ips = new InputSource(new InputStreamReader(new FileInputStream("c:\\20061_010043.HTML"), "iso-8859-1")); parser.parse(ips, new SAXmyHtmlHandler(document));
-----Original Message-----> From: itext-questions-admin@lists.sourceforge.net > [mailto:itext-questions-admin@lists.sourceforge.net] On > Behalf Of Luciano Rodrigues> Sent: Wednesday, January 11, 2006 10:26 AM> To: bill@bearprinting.com; Paulo Soares; > itext-questions@lists.sourceforge.net> Subject: Re: [iText-questions] HTML to PDF>
IВґm not kinding!>
You donВґt understand my problem!>
I Have a HTML file with encondig. I need to generate PDF > file. But I havenВґt XML file.>
Because this, I send my java source code and my html file to > you. This files are examples for my problem.>
If you have xml there's encoding information. If you have > html you may or > may not have encoding information and if you have is a lot > down in the file > as a "<meta http-equiv="Content-Type" content="text/html; > charset=iso-8859-1">". You'll have to scan the file looking > for this and > reopen the file in a Reader with the correct encoding.>
----- Original Message ----- > From: "Luciano Rodrigues" <LRodrigues@unisinos.br>> To: <bill@bearprinting.com>; <itext-questions@lists.sourceforge.net>> Sent: Tuesday, January 10, 2006 7:21 PM> Subject: RE: [iText-questions] HTML to PDF>
Thanks!>
I see there! But I dont found one example for my case.>
The enconding 'ISO-8859-1' is my problem, because result > error 'Invalid byte > 2 of 3-byte UTF-8 sequence.'>
My text is in Portuguese, I have text 'ГЈГ§ГГіГЄ' for example, > because this I > need enconding ='ISO-8859-1'>
From: itext-questions-admin@lists.sourceforge.net > [mailto:itext-questions-admin@lists.sourceforge.net] On > Behalf Of Luciano > Rodrigues> Sent: Tuesday, January 10, 2006 10:27 AM> To: itext-questions@lists.sourceforge.net> Subject: [iText-questions] HTML to PDF>
I need to convert a HTML file to PDF file.>
How do I do this? Why my HTML file use encoding="ISO-8859-1".>
-------------------------------------------------------> This SF.net email is sponsored by: Splunk Inc. Do you grep > through log files> for problems? Stop! Download the new AJAX search engine that makes> searching your log files as easy as surfing the web. > DOWNLOAD SPLUNK!> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click> _______________________________________________> iText-questions mailing list> iText-questions@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/itext-questions>
------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
I understand your problem and I gave you the solution. Here's an hardcoded solution:
SAXParser parser = SAXParserFactory.newInstance().newSAXParser(); InputSource ips = new InputSource(new InputStreamReader(new FileInputStream("c:\\20061_010043.HTML"), "iso-8859-1")); parser.parse(ips, new SAXmyHtmlHandler(document));
-----Original Message-----> From: itext-questions-admin@lists.sourceforge.net > [mailto:itext-questions-admin@lists.sourceforge.net] On > Behalf Of Luciano Rodrigues> Sent: Wednesday, January 11, 2006 10:26 AM> To: bill@bearprinting.com; Paulo Soares; > itext-questions@lists.sourceforge.net> Subject: Re: [iText-questions] HTML to PDF>
Im not kinding!>
You dont understand my problem!>
I Have a HTML file with encondig. I need to generate PDF > file. But I havent XML file.>
Because this, I send my java source code and my html file to > you. This files are examples for my problem.>
If you have xml there's encoding information. If you have > html you may or > may not have encoding information and if you have is a lot > down in the file > as a "<meta http-equiv="Content-Type" content="text/html; > charset=iso-8859-1">". You'll have to scan the file looking > for this and > reopen the file in a Reader with the correct encoding.>
----- Original Message ----- > From: "Luciano Rodrigues" <LRodrigues@unisinos.br>> To: <bill@bearprinting.com>; <itext-questions@lists.sourceforge.net>> Sent: Tuesday, January 10, 2006 7:21 PM> Subject: RE: [iText-questions] HTML to PDF>
Thanks!>
I see there! But I dont found one example for my case.>
The enconding 'ISO-8859-1' is my problem, because result > error 'Invalid byte > 2 of 3-byte UTF-8 sequence.'>
My text is in Portuguese, I have text 'гзнук' for example, > because this I > need enconding ='ISO-8859-1'>
From: itext-questions-admin@lists.sourceforge.net > [mailto:itext-questions-admin@lists.sourceforge.net] On > Behalf Of Luciano > Rodrigues> Sent: Tuesday, January 10, 2006 10:27 AM> To: itext-questions@lists.sourceforge.net> Subject: [iText-questions] HTML to PDF>
I need to convert a HTML file to PDF file.>
How do I do this? Why my HTML file use encoding="ISO-8859-1".>
-------------------------------------------------------> This SF.net email is sponsored by: Splunk Inc. Do you grep > through log files> for problems? Stop! Download the new AJAX search engine that makes> searching your log files as easy as surfing the web. > DOWNLOAD SPLUNK!> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click> _______________________________________________> iText-questions mailing list> iText-questions@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/itext-questions>
Carolyn Marenger 17 March 2006 15:47:52 [ permanent link ]
wes wrote:
How do you convert html document to pdf?> Thanks> Wes
Wes,
I print the html document, directing it to my pdf generating print driver.
Ok, seriously now - you can buy adobe software. If you prefer you can sign up for their on-line service, you get a few free prints and then pay a monthly fee. Once you have done either of these, you would then print the document to your pdf print driver.
In article <1142595703.979124.99650@u72g2000cwu.googlegroups.com>, wesley@ispace.co.za says...> How do you convert html document to pdf?> OmniFormat
I have no idea how or why you want to do this (a bit more information would have been helpful!), but there's a program called Prince that does this very well.
I want the text to be uneditable. In html format, a user could alter> some details and print out a report with incorrect data
PDF isn't exactly uneditable, just more difficult to edit. There's an office suite called KOffice that supports quite well the importing (and therefore editing) of PDFs.
If you want to make sure a file doesn't change (any file, not just HTML), you can do that by taking an MD5 hash of it, and then in future checking the file still gives the same hash. This is how, for example, Bittorrent knows the files it downloads haven't been altered by network corruption or attack[1].
If you're interested, Google links to plenty of articles on how to do this.
[1] I'm not certain BT uses MD5, but the principle's the same. -- Jim
I use CutePDF, which can make practically convert any file to .PDF for free. To convert it, all you have to do I get to the print setup window (as thought you were going to print) and when you have to choose which printer to print to, just select CutePDF, and press Print; then it will ask you where you want to save the converted .PDF file; that's all).
"wes" <wesley@ispace.co.za> wrote in message news:1142595703.979124.99650@u72g2000cwu.googlegroups.com...> How do you convert html document to pdf?> Thanks> Wes>
pass the html to HTMLWorker, through a stream eg MemoryStream (in C#): StreamReader sr = new StreamReader(new MemoryStream(Encoding.UTF8.GetBytes(text)), Encoding.UTF8); ArrayList elements = iTextSharp.text.html.simpleparser.HTMLWorker.ParseToList(sr, ss);//ss is a stylesheet or pass null
you now have an arraylist of Elements or in .Net IElements so you will need to cast them first. Then add these to eg ColunmText or PDFCell or Document -- View this message in context: http://www.nabble.com/HTML-to-PDF-tf2017091.html#a5546005 Sent from the iText - General forum at Nabble.com.
Don Kostello 12 October 2006 18:48:57 [ permanent link ]
I am using the Java version of the library, version 1.4.5 I am trying to convert an HTML page to a PDF document using HTMLWorker. I am doing a simple conversion:
Document pdfDocument = new Document(PageSize.A4, 20, 20, 20, 20); HTMLWorker worker = new HTMLWorker(pdfDocument); StringReader sReader = new StringReader(displayHTML); worker.parse(sReader);
The html document has an stylesheet embedded inside <style> tags.
The PDF document that gets created seems to lose all the formatting. What is going wrong?
Don
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Stylesheets are not supported or to be more precise they are partly> supported in class StyleSheet but not parsed. It's in my to-do list but> as I don't have an immediate use for it it's not at the top.>
Paulo >
Then is it possible for me to create a StyleSheet instance and use HTMLWorker.parseToList(html, stylesheet) or set the stylesheet in my worker and have those styles applied to my html?
If so, where is a good reference on how to create a stylesheet instance?
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Paulo Soares 12 October 2006 22:35:18 [ permanent link ]
----- Original Message ----- From: "Don Kostello" <don.kostello@citigroup.com> To: <itext-questions@lists.sourceforge.net> Sent: Thursday, October 12, 2006 6:51 PM Subject: Re: [iText-questions] HTML to PDF
Stylesheets are not supported or to be more precise they are partly>> supported in class StyleSheet but not parsed. It's in my to-do list but>> as I don't have an immediate use for it it's not at the top.>>
Paulo>>
Then is it possible for me to create a StyleSheet instance and use> HTMLWorker.parseToList(html, stylesheet) or set the stylesheet in my > worker and> have those styles applied to my html?>
If so, where is a good reference on how to create a stylesheet instance?>
There are examples in the mailing list.
Paulo
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Bruno Lowagie 5 December 2006 11:01:08 [ permanent link ]
MMarcavage@AndersonTechs.com wrote:> Is there a way to convert HTML files to a PDF doc using the iText Jar file?> I did not see any examples if you can
iText isn't really made to convert HTML to PDF. There are classes that can help you like HTMLWorker, but there's no full blown HTML parser.
You can use itext.jar which is freely available in net .by using it we can generate pdf from html or jsp or servlet.I have tried the similar think using servlet.
I have a problem while using itext for creating a pdf from database using servlet.While iam trying to open it 2nd time is is giving me error that the document has been closed you canot add any elements. This is because i have closed the 1st window.Please can any one provide me the solution for it.
package pdfConverter; /** *@author Syed Muhammad Aizaz Haider */
import java.io.*; import com.lowagie.text.*; import com.lowagie.text.pdf.BaseFont; import com.lowagie.text.pdf.PdfWriter; public class Converter { public static void main (String pdf[]){ System.out.println("This is some text to be converted"); Document doc = new Document(); try{
PdfWriter writer = PdfWriter.getInstance(doc, new FileOutputStream("RESULT.pdf")); doc.open(); BaseFont embeded = BaseFont.createFont("C:\\Windows\\Fonts\\comic.ttf",BaseFont.CP1250,BaseFont.EMBEDDED); Font font = new Font(embeded,35); font.setColor(25, 254, 75); doc.add(new Paragraph("Hello World",font)); doc.add(new Paragraph("Syed Muhammad Aizaz Haider Zaidee the Prince !!!",font)); doc.add(new Paragraph("abc.jpg")); doc.newPage(); Image img = Image.getInstance("abc.jpg"); System.out.println(img.getClass().getName()); doc.add(img);
package pdfConverter; /** *@author Syed Muhammad Aizaz Haider */ import com.lowagie.text.*; import com.lowagie.text.pdf.*; import java.io.*; public class FilesizeCompression {
public static void main(String[] args) { System.out.println("Chapter 8: example FileSizeComparison"); System.out.println("-> Creates a PDF file with a font that is not embedded"); System.out.println(" and compared it with files that have the font embedded."); System.out.println("-> jars needed: iText.jar"); System.out.println("-> resources needed: c:/windows/fonts/comic.ttf"); System.out.println("-> file generated: font__not_embedded.pdf"); System.out.println(" file generated: font_embedded1.pdf"); System.out.println(" file generated: font_embedded2.pdf");
// step 1 Document document1 = new Document(); Document document2 = new Document(); Document document3 = new Document(); try { // step 2 PdfWriter.getInstance(document1, new FileOutputStream( "font_not_embedded.pdf")); PdfWriter.getInstance(document2, new FileOutputStream( "font_embedded1.pdf")); PdfWriter.getInstance(document3, new FileOutputStream( "font_embedded2.pdf"));
// step 3: we open the document document1.open(); document2.open(); document3.open(); // step 4: BaseFont bf_not_embedded = BaseFont.createFont( "c:/windows/fonts/comic.ttf", BaseFont.CP1252, BaseFont.NOT_EMBEDDED); BaseFont bf_embedded = BaseFont.createFont( "c:/windows/fonts/comic.ttf", BaseFont.CP1252, BaseFont.EMBEDDED); Font font_not_embedded = new Font(bf_not_embedded, 12); Font font_embedded = new Font(bf_embedded, 12);
document1.add(new Paragraph( "This is document1 with ", font_not_embedded)); document2.add(new Paragraph( "quick brown fox jumps over the lazy dog", font_embedded)); document3.add(new Paragraph( "ooooo ooooo ooo ooooo oooo ooo oooo ooo", font_embedded)); } catch (DocumentException de) { System.err.println(de.getMessage()); } catch (IOException ioe) { System.err.println(ioe.getMessage()); }
// step 5: we close the document document1.close(); document2.close(); document3.close(); RandomAccessFileOrArray file; try { file = new RandomAccessFileOrArray("font_not_embedded.pdf"); System.out.println("Size font_not_embedded.pdf: " + file.length()); file = new RandomAccessFileOrArray("font_embedded1.pdf"); System.out.println("Size font_embedded1.pdf: " + file.length()); file = new RandomAccessFileOrArray("font_embedded2.pdf"); System.out.println("Size font_embedded2.pdf: " + file.length()); } catch (IOException e) { e.printStackTrace(); } }
If you would like to report an abuse of our service, such as a spam message, please . Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .