You also need to modify your .csproj file to include some MSBuild directives that ensure the required files are in a good place. These extra steps are normally not required but seems to be some issues ...
You can also view the package page on NuGet. The pdf is created, but when I try to view it, it says that the document is in use by another process. You should dispose the FileStream/MemoryStream ...