Selective Page Range Difficulty

I’m developing a program using Aspose PDF for Java that needs to print specific pages from a PDF. I want users to be able to specify multiple ranges and individual pages to print, such as:

Range = 1-7, 10, 12, 15-21

However, the current printerSettings.setPrintRange method only allows setting a single range using printerSettings.setFromPage() and printerSettings.setToPage().

Is there a way to implement the functionality to print multiple page ranges and individual pages with the current printing capabilities in Java?

Thanks in advance for your help!

@liamcb23

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFJAVA-44418

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.