Make sure the *parent* directory is in the desired collections and/or the user 
has the desired default collection.  To check which collections the parent 
directory has, run the following:

xdmp:document-get-collections("/content/user/pdf/")

Note the trailing slash--by convention, directories end in a slash.

Here is what the CPF doc has to say about this (section 9.4.4.3):

Default or Inherited Collections and Permissions

If you are using a collection in the domain to specify which documents to 
convert, the new documents created by the conversion process must be created as 
part of the collection specified in the domain. You can do this in the 
following ways:

    * Set the inherit collections option at the database level to true and make 
sure the parent directory belongs to the collection.

    * The user who runs the Default Conversion Option (that is, the user who 
originally creates the documents to be converted, whether by drag and dropping 
into a WebDAV folder or by some other means) can have the collection specified 
as a default collection (or a role to which the user is assigned).

    * You can explicitly set the collection on a document (for example, in your 
XQuery module code or through XDBC).

Otherwise only the first phase of conversion will occur (because documents 
created during the conversion process will not be part of the collection 
specified in the domain). Similarly, you must have either the appropriate 
default permissions assigned to the user (or a role to which the user is 
assigned) or you should set the permissions to inherit at the database level.

For information on inherited collections and inherited permissions, see the 
Administrator's Guide. For information on permissions, see Understanding and 
Using Security.

-Danny

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Andrew Welch
Sent: Monday, January 25, 2010 10:56 AM
To: General Mark Logic Developer Discussion
Subject: [MarkLogic Dev General] pdf conversion and inheriting collections from 
the parent directory

Using 4.1-2, I have the standard CPF installed and collections set on
directories, with "inherit collections" set to true.

One directory is:

/content/user/pdf

with the collections "content" and "content/pdf"

When I drop a pdf into that directory the cpf processes it into the
following set of files:

foo.pdf
foo_pdf.xml
foo_pdf.xhtml
foo_pdf_parts (dir)

Only the original foo.pdf is currently inheriting the collections, all
of the other files are in no collection.  This means when I search
using that collection (to search only pdfs for example) these files
are being ignored.

Is it right it to expect the generated files to also inherit the
collections?  Or do I need to do something else to ensure those files,
or at least the xml file belongs to that collection?

thanks
andrew






-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to