1) Get the PDF library from Adobe or write a PDF writer from the PDF spec, and create the PDF in your plug-in.
2) Have an automation plug-in listen for your filter plug-in and then create the PDF via Photoshop, then call your plug-in again? Not exactly sure of your workflow here.