You can programmatically access a document library using the object model or through web services.
If you are using an object model. You can use the SPContext object to get the current site / list. From there, you can iterate over the elements, or you can use the SPList object method to turn it into a dataset, which you can then use to create a PDF file using some PDF library (for example, PDF4NET). If you go this route, the best way to deploy it is to package it as a function in a solution file (.WSP) that you can deploy to your farm. In this case, the code will work in a sharepoint environment. You can enjoy it and have something like the โPrint PDFโ option in the action menu for all lists.
On the other hand, you can also access the list remotely using web services. In this case, you can simply use this as a data provider for your report package.
Daniel Segan
source share