Xml XSLT To PDF How do I?
I took a stab at creating a framework to generate reports through XML and XSLT.
Now the problem I have is being able to allow the user who generated the report to print it in a PDF. I tried saving the generated html with a <cfsavecontent variable="xjy" > and output the info with a cfoutput
<cfdocument format="pdf" marginright="0" saveasname="xxx.pdf">
#XmlTransform(xmlObj,xslObj)#
</cfdocument>.
This is not working. I need help outputing this info into a pdf.
What did this actually end up generating?
DW
Similar Messages
-
How to convert XML file to PDF
Hi there,
Does anyone know by any chance, how to covert XML file to PDF? ThanksHello,
You can convert most of the files in PDF by using the Print menu.
Open the file you want to save in PDF and choose in the menu bar File > Print....
You will see a will the Print window and at the left, click on the PDF button.
Choose in the menu “Save as PDF...”
Insert the name and you can also set security settings (like a password) and click on the “Save” button.
Hope this will help.
EDIT : (oups, dsimagry posted as the same time of me) -
How to Get XML from the PDF form generated using Designer that is stored in LC
We have a Requirement of Generating reports on what a PDF form is comprised of? It is easy for us to scan / parse the XML format of the PDF form and get all the relavent Info we need. We are able to see the XML format of the PDF form when we open up the Form in Designer.
But we are trying to run this report in a Batch Mode for many PDF files. I need to know how to get a XML format of the PDF file that is stored in LC that was developed using Designer. Once we are able to get the XML of the PDF form it is just a scan / parse to get the relavent data.
Can some one tell me how to get the XML format of a PDF file stored in the LC?If I place the PDF form on the LC server - Can you let me know of the tools you are referring to get XML design from the PDF form?
Is it through a Process Orchestration I need to run the PDF through to get a XML design out of it?
I am fine in storing the PDF in the LC server? How will I get the XML design (XML) from this PDF on the server? -
XML + XSLT - Retaining LF's in output
Hi
I am using FOP to process an XML file to a PDF using a XSLT. The
description column can have LF characters in it, which currently are
getting filtered out. I have converted teh LF's to the escape codes,
but this has had no effect (I do something similar with the greater
than symbol and that works). How do I go about retaining them. This
has been driving me around the bend for ages. Some guidence in this
would be most appreciated.
Below is some sample code illustrating the issue. The second row is
supposed to span multiple lines in the text cell.
------------- XML --------------------------------
<SERVERS>
<SERVER>
<NAME>SERV1.DOMAIN.COM</NAME>
<DESCRIPTION>This description does not have any LF's in the
text</DESCRIPTION>
</SERVER>
<SERVER>
<NAME>SERV2.DOMAIN.COM</NAME>
<DESCRIPTION>This is intended to be a line with a LF between here
and here and another LF between here
and here and another
LF between here
and here</DESCRIPTION>
</SERVER>
</SERVERS>
------------- XSLT -------------------------------
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.1"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:java="http://xml.apache.org/xslt/java"
exclude-result-prefixes="java">
<!-- C:\Files\xml>"C:\Program Files\Apache Software
Foundation\fop-0.20.5\fop.bat" -xml c:\files\xml\servercr.xml -xsl
C:\files\xml\servercr.xsl -pdf c:\temp\xml\servercr.pdf -->
<xsl:template match="SERVERS">
<xsl:variable name="CR" select="'
'"/>
<xsl:variable name="LF" select="'
'"/>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:fox="http://xml.apache.org/fop/extensions">
<fo:layout-master-set>
<fo:simple-page-master master-name="A4-L" page-width="297mm"
page-height="210mm" margin-top="10mm" margin-bottom="10mm"
margin-left="10mm" margin-right="10mm">
<fo:region-body margin="10mm"/>
<fo:region-before extent="20mm"/>
<fo:region-after extent="10mm"/>
<fo:region-start extent="10mm"/>
<fo:region-end extent="10mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="A4-L">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:table table-layout="fixed" border-color="rgb(0,0,0)"
border-style="solid" border-width="1pt">
<fo:table-column column-width="40mm"/>
<fo:table-column column-width="200mm"/>
<fo:table-header background-color="rgb(214,214,214)"
font-size="8pt" font-weight="bold" text-align="center">
<fo:table-row text-align="center" font-size="8pt">
<fo:table-cell border-color="rgb(0,0,0)"
border-style="solid"
border-width="1pt"><fo:block>Server</fo:block></fo:table-cell>
<fo:table-cell border-color="rgb(0,0,0)"
border-style="solid"
border-width="1pt"><fo:block>Description</fo:block></fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<xsl:for-each select="SERVER">
<fo:table-row text-align="center" font-size="8pt">
<fo:table-cell border-color="rgb(0,0,0)"
border-style="solid" border-width="1pt">
<fo:block vertical-align="middle">
<xsl:value-of select="NAME"/>
</fo:block>
</fo:table-cell>
<fo:table-cell border-color="rgb(0,0,0)"
border-style="solid" border-width="1pt">
<fo:block vertical-align="middle">
<xsl:value-of select="DESCRIPTION"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:for-each>
</fo:table-body>
</fo:table>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet>
I know this isn't an oracle issue, but hopefully someone can point me in the right direction.
Thanks for your help.
Nick.Hi
Thanks for your response it was very useful.
The attribute linefeed-treatment on its own didn't solve the problem, and another link I found suggested that may be a bug. However making use of the attribute white-space-collapse did seem to do what I wanted!
So it loks like the solution is to use one bug to fix another :) I'm sure that can't be good and is asking for problems later on. But for now it will do.
Many thanks for your guidance.
Nick. -
HELP: JSP + XML + XSLT = HTML?
Hello, all.
I am trying out Weblogic 6 and I am trying to get the JSP + XML + XSLT =>
HTML chain working.
I am coming from using Orion and SAXON.. and in that situation I had a JSP
that contained XML tags... they were filled in at runtime and then using
Servlet-Chaining was passed along to the SAXON XSLT Processer. SAXON checked
for the inline XSL specified and then used that to transform the document
into HTML.
It worked well, but there were some other features missing/not documented
that we now need.
With Weblogic I am trying to use the XSLT Tag Library that comes with the
distribution, but it seems to be very finicky. I followed the directions and
I got it to do a sort of roundabout transformation. But it doesn't seem to
work quite right.
The best I can get is the following:
I have an 'xslt' directory url-pattern-mapped to xslt.jsp (as instructed)...
but can't figure out how to specify the xsl file on-the-fly... that is, if I
don't hard-code the XSL file in the x:xslt element in the xslt.jsp it
complains about some XML file not having a root element.
Ideal situation:
1. I have a JSP that includes XML elements.
2. It is filled from a database at runtime and specifys (using a PI) what
XSL stylesheet it is to be processed with.
3. Somehow (fingers crossed) the XML is processed and transformed into HTML
by the appropriate XSL file.
I think I am mostly stuck moving between steps 2 and 3.
Can anyone give me some hints? Are there some Weblogic specific
elements/tags that I have to include in the XML file that Weblogic will
catch and re-direct to the XSL Parser?
Please, anyone, if you have some information, I would much appreciate it.
Dylan Parker
PS - I apologize for the cross-post, I hope it doesn't cause too much
traffic.Craig,
I've since discovered how to do it with the WL Taglibrary... and have
moved on =)
It has to do with the EXTREMELY BADLY documented x:xml tag that can
appear within the x:xslt tag body...
So the WL Tag Library allows something like the following.
(Please note, angled brackets are omitted in this post to prevent html
parsing)
[x:xslt stylesheet="sheet.xsl"]
[x:xml]
Here is the XML to run the sheet on.
This should have all relevant XML syntax: the PIs, the doctype,
root elements etc...
[x:xml]
[x:xslt]
And that DOES work. But not very well. WL, a little prematurely
incorporated versions 1.2 of Xerces and Xalan in their product -- and
these versions have some irritating bugs.
Also -- There tag library doesn't copy the source XML across as UTF-8
.. so a lot of the Japanese I have embedded there (from a DB) gets
mangled somewhere in their code...
AND -- If you hammer a little bit on an JSP/XML that uses the WL Tag
Library (eg clicking refresh lots of times in IE)... I get huge
amounts of irritating exceptions appearing in the log files.
NullPointerExceptions
XSL Parsing Exceptions
XML Parsing Exceptions
but completely unpredictably...
In my eyes.. the WL XML/XSL Tag Library using the incorporated and
untouchable Xalan and Xerces (v1.2) is virtually unusable.
What a pain.
BUT! Apache offers a similar OPEN SOURCE XSL Tag Library available
here:
http://jakarta.apache.org/taglibs/doc/xsl-doc/intro.html
And it uses the standard, non-weblogic-incorporated, Xerces and Xalan
(which means you can provide whatever version you want).. and it works
impressively well.
It has almost identical performance as the WL Taglib, and without all
of the bizarre exceptions being thrown.
And it does proper passing of the character encoding type!
If only the taglib did caching though =(
The performance hit over pure JSP is huge. Almost two orders of
magnitude. On my desktop box I can get around 500Requests/Sec if I am
returning HTML direct from a JSP... while if I produce XML that gets
processed by XSL into HTML the Requests/Sec drops to 5!!!!
Caching. Caching. And more Caching. A lot of DiskIO is going on with
the XML/XSL/XHTML chain of events.
I hope this helps!
I'd be curious as to what you find out as well.
Dylan Parker
On 5 Mar 2001 07:20:00 -0800, "Craig Macha"
<[email protected]> wrote:
>
Yep, I feel Dylan's pain.
I am trying to accomplish the same thing. A JSP page generating
dynamic XML content and then utilizing an XSLT stylesheet to transform
all the content into XHTML.
Does anyone have some examples that show exactly how to accomplish
this? Can I do this with WLS and the XML taglib that comes with
it? Or do I have to move on to something like Cocoon to get this
capability?
Any insight would be greatly appreciated.
Thanks,
Craig Macha
"Dylan Parker" <[email protected]> wrote:
Hello, all.
I am trying out Weblogic 6 and I am trying to get the
JSP + XML + XSLT =>
HTML chain working.
I am coming from using Orion and SAXON.. and in that situation
I had a JSP
that contained XML tags... they were filled in at runtime
and then using
Servlet-Chaining was passed along to the SAXON XSLT Processer.
SAXON checked
for the inline XSL specified and then used that to transform
the document
into HTML.
It worked well, but there were some other features missing/not
documented
that we now need.
With Weblogic I am trying to use the XSLT Tag Library
that comes with the
distribution, but it seems to be very finicky. I followed
the directions and
I got it to do a sort of roundabout transformation. But
it doesn't seem to
work quite right.
The best I can get is the following:
I have an 'xslt' directory url-pattern-mapped to xslt.jsp
(as instructed)...
but can't figure out how to specify the xsl file on-the-fly...
that is, if I
don't hard-code the XSL file in the x:xslt element in
the xslt.jsp it
complains about some XML file not having a root element.
Ideal situation:
1. I have a JSP that includes XML elements.
2. It is filled from a database at runtime and specifys
(using a PI) what
XSL stylesheet it is to be processed with.
3. Somehow (fingers crossed) the XML is processed and
transformed into HTML
by the appropriate XSL file.
I think I am mostly stuck moving between steps 2 and 3.
Can anyone give me some hints? Are there some Weblogic
specific
elements/tags that I have to include in the XML file that
Weblogic will
catch and re-direct to the XSL Parser?
Please, anyone, if you have some information, I would
much appreciate it.
Dylan Parker
PS - I apologize for the cross-post, I hope it doesn't
cause too much
traffic. -
in form xml data showing perfectly but when i
converted into pdf and stored on desk top, xml data is not showing in the form(because no xml connection in form) how i can view the xml data in pdfform.in form xml data showing perfectly but when i
converted into pdf and stored on desk top, xml data is not showing in the form(because no xml connection in form) how i can view the xml data in pdfform. -
Hi all!
I'm in a bit of a dilema. As the least knowledgable member of our small development group (3 people incl. me) I'm caught in the middle of a pretty fierce debate over whether or not to we should implement JSP.
Currently to seperate business logic from presentation we have our servlets pass XML to the browser and then the browser renders the HTML using the appropriate .xsl (sometimes we use server-side transformation).
Now one of the guys wants to use MVC/Struts and JSPs in order to create a much needed UI for an application. The plan is to not put any Java code in the JSP (seperation of logic and presentation - good, business logic in both the JSP and Servlet - bad.) but the other guy is still vehemently against it.
He says that anything JSP can do we can already do with XML/XSLT and to add JSP to our environment would complicate things.
And while I agree with him there, there are some things that when you do them with JSPs make the code more readable and transparent.
If you had to take a side, which one would you choose?
Has anyone else out there already gone through this debate? I'd be interested in knowing the outcome.
Thanks,
JohnI have a couple of comments.
1> "XML to the browser and then the browser renders the HTML using the appropriate .xsl"
I all cases you should do the transformations on the server. Lot of browser do not know how to
do a xsl transform. And since you can do it some time why not do it not everytime?
2> "business logic in both the JSP and Servlet"
Business logic should neither be in servlets nor in jsp. I think they should be in business logic beans.
3> "anything JSP can do we can already do with XML/XSLT "
Although anything can be done using xml/xsl or jsp there are a bit of differences where struts-jsp architecture is more perferable.
Imaging a web site which has lots of online forms(with textfiedls, checkboxes, select lists, etc) which are to be validated and if some validation fails the same form is to be shown with the values already submitted prefilled. Doing this with xml/xsl or even simple jsp could be a nightmare.
But if you use struts MVC architecture with jsp and struts taglib this will be very very simple.
Introducing struts-jsp will not complicate things and if the scnario described above is there or could arise in your application then you should seriously think about using struts+jsp. That does not mean you will have to scrap you xml+xsl architecture. You can still generate the xml using your action bean , put the xml in request and forward it to you jsp for rendetion. The jsp page could then use a taglib which has the xsl transformation code to do the xslt transformation.
The above comments are not just my thoughts but i have also implemented/experienced the above during various projects and they have proved to be useful.
Cheers! -
Hi all,
Do you know a way of publishing XML forms to PDF ?
Is it possible using XSL-FO transformation within the portal ? Has someone already done it ?
I can not find any information regarding this.
Thanks a lot
NicolasHI
the basics involve using
1>an XSLT filter already available
2>using an custom dev oped xsl which brings the transformation and configuring the xsl in XSLT filter
3>keeping the xml doccuments in a repository in KM Content and configuring the xslt filter to point to the repository/doccument .
4>restarting the server.
u will find help if u navigate to KMconfiguration under system configuration and then
<b>Configuration
Content Management
Repository Filters</b>
Please do give points if this helps you atleast gives u a guideline
With Regards
subrato kundu
IBM
SAP Enterprise Portal technology Consultant -
Turning XML/XSLT files into a working Web Template
I've scoured these and other forums for this small piece of information, so I apologize if it's been answered already, but I can't find it.
I understand that the web templates in Lightroom are done in XML/XSLT, with the XML file named galleryMaker.xml and the XSLT file named transformer.xslt. However, I cannot figure out how to get these files to show up as a template in Lightroom.
I am on a Windows XP machine, and all the templates show up in Application Data/Lightroom/Web Templates, but they are all of the type *.lrtemplate. Is there a way to convert the XML/XSLT set of files into an lrtemplate file? Or is there something else I'm supposed to do?Splatt42 wrote:
I have an executable binary program (that runs just fine on it's own) that I needed to turn into a service (call it "foo"). I did so using the .xml file below, and it does indeed start up at boot, runs in the background,When you run your program (/usr/bin/foo), does it daemonize itself (kind of like running /usr/sbin/sshd), or would you have to do it yourself if run from the shell ('/usr/bin/foo &')?
and does everything it should. I've noticed a couple of problems, though. If I execute an init 0, the system hangs and never gets to the OK prompt. If I disable my service, an init 0 completes without any problems. An init 5 works OK, as does a shutdown from the desktop. I'm not sure what could be causing this. I thought maybe because the service was restarted over and over again...?
I gave my service a timeout value of "0", as I found that when I gave it any other value the service stopped running when the timeout expired. A seeming side effect is that my service is never listed as running, as it's start method (itself) hasn't yet completed.The manifest doesn't really want your binary as the start method. It wants to run something that starts the service, and will exit with status 0 if the startup was successful, and non-zero if the startup was unsuccessful. So you might want to write a small wrapper script (like an init.d startup script).
Take a look at the sshd.xml manifest. It doesn't start sshd, it runs '/lib/svc/method/sshd start', which is responsible for starting sshd.
Darren -
On XML, XSLT, FO usage
Hi,
Any links... help...documents... tutorials... samples on usage of XML, XSLT, FO engine, for pdf generation.
Ravishankar SwamyHi,
This Technical Note is very interesting to start point
http://www.oracle.com/technology/pub/notes/technote_vohra_fop.html
Follow good references from AMIS
http://technology.amis.nl/blog/?p=1102
http://technology.amis.nl/blog/?p=1182
Best regards -
Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy. Pic and texts are saved as a PDF, how can I paste the doc ?
Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy. Pic and texts are saved as a PDF, how can I paste the doc ?
-
Load data in xml file into Pdf form created by LiveCycle Designer
I want to load data in xml file into Pdf form when Pdf opened and Form field will be filled with data from xml file .I try to use $host.importdata("filename.xml"); But i could not find suitable place to run my code. Can anyone give me some advice? thank you.
Hi,
extract your xml and then you can use insert all clause.
here's very small example on 10.2.0.1.0
SQL> create table table1(id number,val varchar2(10));
Table created.
SQL> create table table2(id number,val varchar2(10));
Table created.
SQL> insert all
2 into table1 values(id,val)
3 into table2 values(id2,val2)
4 select extractValue(x.col,'/a/id1') id
5 ,extractValue(x.col,'/a/value') val
6 ,extractValue(x.col,'/a/value2') val2
7 ,extractValue(x.col,'/a/id2') id2
8 from (select xmltype('<a><id1>1</id1><value>a</value><id2>2</id2><value2>b</value2></a>') col from dual) x;
2 rows created.
SQL> select * from table1;
ID VAL
1 a
SQL> select * from table2;
ID VAL
2 b Ants -
Attach an xml to a pdf using ADS
Hi all,
I have a scenario where we are sending a Base64 encoded PDF (a bill) and the corresponding xml data from SAP backend on level 4.6C to PI 7.1. In PI we should attach the xml data to the PDF. I have already succeeded to do this using iText but we have a requirement to do this with ADS instead. In Netweaver Developer Studio I created an example project where I am reading a PDF as a byte array, also reading an XML file and try to attach the XML to the PDF using the ADS api. The project successfully built in NWDS but when I am running the project it failes.
I am using standard code to attach the xml stream to the pdf, the error message is thrown when the following line is executed:
IWDPDFDocument document = context.execute();
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.impl.PDFDocumentAccessibleContextWDImpl.execute(PDFDocumentAccessibleContextWDImpl.java:99)
at com.eon.xi.dijnet.base64.PdfWithAttachment.addAttachmentWithSap(PdfWithAttachment.java:129)
at com.eon.xi.dijnet.base64.PdfWithAttachment.main(PdfWithAttachment.java:218)
Caused by: java.lang.NullPointerException
at com.sap.tc.webdynpro.services.sal.deployment.core.DeployableObjectInternal.getSystemDeployableObjectName(DeployableObjectInternal.java:53)
at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.AdobeFormHelper.<clinit>(AdobeFormHelper.java:115)
... 3 more
Is it the problem with the PDF that it is not an Interactive Form?
Or the problem is simply that I am trying to run the project on my local machine where ADS is not available?
Thanks for your help.
Pal
Edited by: Pal Somogyi on Oct 17, 2010 10:30 PM
Edited by: Pal Somogyi on Oct 18, 2010 11:44 AMHi Pal,
There is a requirement to generate an Adobe Form using SAP Interactive forms, and then, send this PDF to a non-SAP system using Base-64 encoding. The receiving system will decode this file and re-generate a PDF.
I have heard that this could be done in the PI layer, using the Conversion Agent.
Another approach which I can think of is convert PDF to binary and then use the cl_http_utility=>encode_base64 to convert binary to base64.
You have mentioned that you have had to send a base 64 encoded pdf. Could you pelase guide me through the process?
Thanks,
Preethi. -
I need to turn an indesign document into an editable pdf. how do I do that?
I need to turn an indesign document into an editable pdf, how do I do that?
InCopy is a solution, but it's not the only viable solution.
I update many books, from 200 pages to 3,200 pages every year, long document, very techincal tax books.
Some are done through InCopy, some are edited word files and rtfs exported from InDesign, some are marked up hard copies etc.
It totally depends on the clients technical ability with computers. Last year I taught over 30 authors of ours how to use InCopy. Some were receptive, some were dubious, some were totally clueless.
And on the dubious and totally clueless I spent more time troubleshooting their problems than I would normally with a Word/RTF option.
Some people are capable of switching to InCopy or even know how to use it in the first place. For anyone never used InDesign or InCopy before then it's a massive learning curve to jump from MS Word et al word processors, to InCopy.
I do agree, it is the best solution that's out there, technically. But that solution is not usable by a lot of people.
Yeh if the client is comfortable with InCopy then it's the way forward.
But in most cases, in my experience, it's faster and more efficient to Export the text as RTF and let the author update the RTF. That leaves you in control of reinserting the text and formatting it correctly. Rather than letting the client add bold, underline, italics, superscript, subscripts, crazy workarounds because they didn't know how to do it properly. And in the end you end up with 2 or 3 times the amount of work than is necessary, just cleaning up what the client has done in InCopy that does not suit the overall formatting of the publications. -
Hi All
I'm want to dip my toe into the world of XML/XSLT development
to help with
job applications. Seems there's a lot of companies asking for
this.
I've been developing ASP applications for a number of years,
but i've never
looked at XML, etc...
Can anyone provide a strating point, examples, etc? I'm also
looking to
learn .NET too (think i have a mountain to climb).
I've been using Access database for my applications but also
need to expand
by using MS SQL on my local machine.
Any ideas wher to start?
Hope someone can point me in the right direction - Thanks in
Adance
Andy> Can anyone provide a strating point, examples, etc? I'm
also looking to
> learn .NET too (think i have a mountain to climb).
And at the top of that mountain is a pile of .net XML
applications. I can't
say that's the motherland of software development, but, yea,
it probably
pays good. ;o)
> Any ideas wher to start?
Well, if you start using asp.net 2.0, a lot of the built-in
controls
leverage XML and XSLT, so you'll begin to get your hand dirty
just going
through the basic ASP.net 2.0 tutorials.
-Darrel
Maybe you are looking for
-
IPhone not recognized by iTunes - tried everything
I need some serious help. Was trying to install the 1.1.4 update on my iPhone, and got the 1602 error. Searched the net for solutions. Tried a different port, as someone suggested. Didn't work. Then I did something (don't remember exactly - maybe swi
-
Default a gl account in account in a purchase order with account assignment
Hi all I need default a gl account in account in a purchase order with account assignment P. can somebody help me. They have used a gl account which is not correct. Thanks
-
Download Oracle 10g fails!!!
Cannot download Oracle10g (tried everything the last 3 hours - it's very urgent!) after the user profile the page https://profile.oracle.com/jsp/reg/UpdateMember.jsp cannot be shown?????? Hey, I only need the newest packager in order to remove the OD
-
Reading Preferences not saving in Adobe Reader 11
When Adobe Reader updates, it resets the setting (GUI--Edit--Preferences--Reading--Page vs Documents --to default instead of "read only current visible pages". This causing some printing documents to "hang" in the preparing pages to print dialog box
-
What is average battery life everyone is getting for the Zen Mic
I just got my Zen Micro last Thursday. I'm concern about the battery life. I haven't fully tested the battery yet, but I'm estimating that I will only get about 6-7 hours for it. The advertised time was suppose to be as much as 2 hours. Now I know th