Importing/Exporting PDF Files in Orchard

Topics: Customizing Orchard, General
Oct 21, 2013 at 9:59 AM
I have the following requirements in Orchard to be done

Given a PDF file as an Input need to upload the file to orchard project.

Once the file is uploaded we should be able to retrieve/export the file as pdf from the Orchard Project.

How can we achieve this in orchard? Any Suggestions?
Developer
Oct 21, 2013 at 1:34 PM
Edited Oct 21, 2013 at 1:34 PM
For exporting see this module: https://orcharddownloadas.codeplex.com/ Importing is much more complex. If I were you I would examine the option of importing through standard Orchard import files (the advised way) and if that is not an option for some reason than from some other, better processable file format other than PDF.
Oct 21, 2013 at 3:37 PM
Maybe you could import using the Media Library, it's the standard method for media management and pdf is consideredas far as I remember.
To do this, you may use the MediaLibraryPickerField to add a list of .pdf documents to the contentitem in relation with your pdf, exporting could only be done via a dedicated controller which will read your MediaLibraryPickerField and will take care pushing each file in the response stream.
You may also explore the option of using Webapi, included in Orchard, which has very solid import/export methods.