Is there away that i can download a folder from the laserfiche without downloading the .txt files and only the pdf files. I would also need to keep the file structure.
Question
Question
Replies
This is not possible out of the box. The alternative is to do Download->Folder Contents, then in Windows Explorer search the local folder for *.* and delete the non-pdfs. Another alternative is to use a custom toolbar button, but that is somewhat advanced and involves the SDK.
What is your use case for this? We could look into adding this functionality in a future version.
Hi Rob,
There are several use cases for this. In this particular case, the customer just wants to download the content files for backup purposes. They're using Laserfiche Cloud, so they don't have back-end access. Other use cases i've seen in the past is exporting a file/folder structure to share it with another party, in which case you don't need the text files or metadata.
Thanks, I have heard this requested before. I created an enhancement request, we will look into adding this to a future version (request# TFS-17619).
Great thank you Rob! Is there any way for us to track this request if/when it gets added to the roadmap or into a product version?
We will update this post if/when it gets added.
OK thank you!
Is there any documentation or tutorial that could point me in the direction on how to get only PDF's using a custom button and the SDK?
The CustomButtonManager project in the SDK (in ClientAutomation Samples.zip) contains code for adding custom buttons, although it might be easier to just add a button manually if you don't need large-scale deployment. The button command would be something like ExportDocuments.exe -hwnd %(hwnd) -entries %(SelectedEntries), it would use %(hwnd) to find the window it was clicked from and get the serialized connection, then it would use the %(SelectedEntries) to get the list of entry IDs. With the SDK you can export each document like this:
foreach (string entryId in entryIds.Split(',')) // entryIds comes from the %(SelectedEntries) command line token { EntryInfo entry = Entry.GetEntryInfo(entryId, session); if (entry.EntryType == EntryType.Shortcut) entry = Entry.GetShortcutTarget(entry.Id, session); if (entry.EntryType == EntryType.Document) { DocumentInfo doc = (DocumentInfo)entry; String localFolder = @"c:\\output"; String localFile = Path.Combine(localFolder, doc.Name); // Append .pdf if necessary string contentType; using (var tempStream = File.OpenWrite(localFile)) using (LaserficheReadStream readStream = doc.ReadEdoc(out contentType)) { readStream.CopyTo(tempStream); } } }
See this presentation for more information. If you hit a roadblock, post here and I'll try to help.
My man! Thank You! I will try this and report back if I have issues.