Failed to load pdf document c