投稿済み Tue, 05 Jan 2021 23:29:18 GMT 、投稿者 Jon Weston File IT Solutions Sr Application Developer and RIM specialist
I'm seeing the code samples for using the API to download an entire document (download a document) but I need to download just a page of a document.  Is that supported by the API?
投稿済み Tue, 12 Jan 2021 23:29:18 GMT 、投稿者 Matthias Wieland DocuWare Europe GmbH Sr. Director Support EMEA
Dear Jon Weston! It looks like the Community cannot answer your question. That's why we have opened a Support Request with the Number SR-141826-K7Z5L for you. A Software Support Specialist will contact you directly to follow up. We will update this thread with the solution as soon as we have resolved the Support Request. With best regards, DocuWare Support Team
投稿済み Thu, 14 Jan 2021 05:44:23 GMT 、投稿者 Fabian Kall - left 01.22
In DocuWare, there is the notion of a document's 'sections'. A document can have multiple sections clipped together, which can be of different file types. Each section can in turn be presented as having multiple pages in the document viewer. 
The API allows downloading the whole document as well as the individual sections.

If what you need is really the first page (of the the first, possibly the only section) of a document, then you are already limiting yourself to certain filetypes, because not every filetype is displayed as 'consisting of several pages that you can thumb through'.
For instance, what if your document is a zip file. The document viewer will show this as a section with one page, and this page shows an auto-generated inventory-list of the files within the zip file. 

This is basically why what You need isn't possible. 
DocuWare must be able to handle any type of file You throw at it as a document that You can safely store in an archive, but that will always include filetypes where it's impossible to determine what 'the first page' is, or even display it in the document viewer.

If You're dealing with pdf documents/sections mainly, you could download the first section of a document and then use a pdf library to get the first page of that pdf file. Maybe take a look at 'pdfium' (no affiliation).
When you're downloading files, note the Enum 'FileDownloadType', which You can set to 'FileDownloadType.PDF' to open this up to 
the many file types that can be converted to pdf in a meaningful manner like docx, eml, etc...
 
投稿済み Thu, 14 Jan 2021 18:41:57 GMT 、投稿者 Jon Weston File IT Solutions Sr Application Developer and RIM specialist
Thanks Fabian.  In this case we're only dealing with single-section PDFs so the ability to download a section won't help - it'll be the entire document.  I'll look into the 3rd party PDF apps, thanks for the suggestion.

フォーラムに投稿するためにはログインが必要です。