Error code 25 means that the printer driver does not have access to the UNC path.
If you are using printer sharing, please keep in mind that the Shared printer driver prints under the SYSTEM account.
Please make sure that you follow the instructions on the link below to configure the UNC path.
Configuring output directory for shared printers using UNC path on the network