How can I configure directories to allow printing to a pdf in the portals?

To allow directory printing from portals, you can toggle the 'Directory Printing?' field on the General Directory record to "Yes". 

There is also a query called Directory Printing that is available on the Portal Admin homepage (under Directories) in which you can batch update the Directory Printing field from the query results.