Hello all, we are using in our product Aspose.pdf to convert PDF to Postscript via viewer.printLargePdf.
Our customer has a big original PDF file (e.g. 3MB). We found out that with using the methods above it takes almost 6-9 Minutes to convert it and the resulting file size is ca. 140-200MB.
Even a 1MB File will be converted to 48MB.
Which is, from our point of view, too long and too big to handle in our application.
You need to set up a printer on your laptop/PC with name ‘PS_Printer’ (or similar) which uses a Postscript driver, e.g. HP Universal PS Printing or similar. It doesn’t matter what driver I use, the size is almost the same.
Please setup in the init() method the license information for Aspose.PDF, as if no license used, the converted document contains only 4 pages ;-), which is not correct.
Put the attached PDF file into a folder C:\temp\xxxxx.pdf - adjust the folder name, if necessary, to your environment.
We have used Aspose.pdf version 20.2 and 20.3, but with the same bad results.
Are you aware of these problems and do you have a solution for this?
Can you please try to use Aspose.PDF latest version 20.4 and if there is still an issue than please share complete environment details along with JDK version details so that we may further investigate this issue on our end.
I’m running the unit test on Eclipse and a Windows 10 PC with preparing a printer PS_Printer and using driver HP Universal PS Printing. it can be downloaded here. “https://ftp.hp.com/pub/softlib/software13/COL40842/ds-99376-23/upd-ps-x64-6.9.0.24630.exe”
Windows:
2. Open the CONTROL PANEL on the server and select ADMINISTRATIVE TOOLS.
3. Open the PRINT MANAGEMENT.
4. Select PRINT SERVERS -> PRINTERS.
5. Select your printer and open the printer properties.
6. Select port FILE.
Printer port
In tab GENERAL, enter the name PS_Printer for the printer.
What else environment information do you need?
Regarding 20.4, I’m currently not able to test with 20.4, as this month our license was expired. :-
We are currently renewing it.
But, I had a look into the release notes for 20.4, there are only a few tickets solved, I don’t expect any changes on this, means it would be the same bad performance and big size. I will share later the results with 20.4.
Would you please nevertheless have a look on this problem.
Thanks a lot
Anne
I like to inform I have worked with sample code share by you and that contain some undefined variables. Would you please share SSCCE code that you are using for this , so that we may try to reproduce and investigate it in our environment.
I have now prepared a complete maven project. After importing the project in eclipse and after installing the PS_Printer (as described earlier) and putting the .pdf file into C:\temp folder and adding your license file into the project main folder, you should be able to run the unit test in class AsposeTicket211831.
I have observed your comments and created investigation ticket with ID PDFJAVA-39408 in our issue tracking system to investigate and resolve this issue as soon possible.