I am developing a WPF program (Program1) which can read/write data in my PostgreSQL Database. However, when I start to develop the Print PDF function, I found that the free PDFSharp/MigraDoc cannot print Asian Language Characters. So I have to find another PDF library.
I know that there are some Commercial Library which can do the job but I want to reduce the cost. Some of them provide a GPL or AGPL License Library, I want to use them in my commercial project.
Currently my plan is to develop a separate program (Program2) which can receive arguments. Program2 will use the arguments to call data from my PostgreSQL database and generate the PDF using the GPL or AGPL Licensed Library. The Program2 will be a Open-Source program which use the same License of the PDF Library.
Program1 will use Process.Start and ProcessStartInfo to start the Program2 with arguments for generating the PDF.
I would like to know if my plan is legal as I am not familiar with the licensing problem. Do I also need to make Program1 or the PostgreSQL Database generating script Open-Source?