Document conversion is an extra cost option. It is not included in a standard MarkLogic license. The error message you are receiving is telling you that the license key you have installed does not include the Document Conversion option.
The Content Processing Framework (CPF) is a standard part of MarkLogic. Document Conversion is driven by CPF. You can install the pipelines, but the code that converts PDF to XML needs to be activated with a license key. Contact your MarkLogic rep. On Feb 2, 2011, at 8:25 AM, Mohanraj wrote: > Hi, > > I am using Mark Logic 4.1-5 Enterprise server. I need to convert a pdf file > into xml file. But when i try this conversion, i am getting the error message > as "Conversion not enabled by license key". I have enabled all the pipelines > in Content Processing. But still i am getting this error although i am using > CPF in Enterprise license. Can anyone please help me? > > Below is the Query code used by me: > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ > xquery version "1.0-ml"; > (: PDF to XML Conversion :) > declare namespace html="http://www.w3.org/1999/xhtml"; > > let $results := > xdmp:pdf-convert( > xdmp:document-get("C:/Program Files/MarkLogic/pdf/file1.pdf"), > "file1.pdf") > let $manifest := $results[1] > return $results[2 to last()] > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ > > Below is the error message got from CQ: > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ > > query evaluated in pdftoxml at file::Docs/ as 1.0-ml (cq v4.1-5) > > [1.0-ml] XDMP-CONVLICKEY: > xdmp:pdf-convert(document{binary{"255044462d312e330a25c7ec8fa20a362030206f626a0a3c3c2f4c656e677468..."}}, > "file1.pdf") -- Conversion not enabled by license key > > Stack trace: > > > line 6: > 4: > 5: let $results := > 6: xdmp:pdf-convert( > 7: xdmp:document-get("C:/Program Files/MarkLogic/pdf/file1.pdf"), "file1.pdf") > 8: let $manifest := $results[1] > > xdmp:eval("xquery version "1.0-ml"; (: PDF to XML > Conver...", (), <options > xmlns="xdmp:eval"><database>3444426660464683322</database><isolation>different-tra...</options>) > > > in /cq/eval.xqy line 111: > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ > > Regards, > Mohanraj > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general --- Ron Hitchens {mailto:[email protected]} Ronsoft Technologies +44 7879 358 212 (voice) http://www.ronsoft.com +1 707 924 3878 (fax) Bit Twiddling At Its Finest "No amount of belief establishes any fact." -Unknown _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
