Aspose-pdf library - create a many in one pdf file

Hi,
I work with the java version of aspose library, JRE 7, Windows 7.
I'm using the last version of aspose pdf library (4.3.1) which merge the two precedent versions of apose pdf and aspose pdf-kit, and I try to put many (4 in 1 for example) pages in one page. As a result, I get a new empty pdf file.
I didn't encounter this problem with the version pdf-kit 4.6.0.
Is there a problem with this this functionality ?

Hi Christophe,


Thanks for using our products.

Can you please share the code snippet and resource files so that we can test the scenario at our end. We are sorry for this inconvenience.

Hi,
This is the code I used to process the file added with this post.
I can’t obtain the file result.

public static void main( String[] args )
{
String path=“src/test/java/resources/”;
String inputFile=path+“10 pages.pdf”;
String outFile = path+“MyoutFile.pdf”;
PdfFileEditor pdf = new PdfFileEditor();
pdf.makeNUp(inputFile, outFile,2,2);
}

Best regards.

Hi Christophe,


Thanks for sharing the code snippet.

I have tested the scenario using Aspose.Pdf for Java 4.4.0 and as per my observations, the resultant PDF is properly being generated. For your reference, I have also attached the resultant PDF generated over my end.

[Java]

String path = “c:/pdftest/”;<o:p></o:p>

String inputFile = path + "10+pages.pdf";

String outFile = path + "MyoutFile.pdf";

com.aspose.pdf.facades.PdfFileEditor pdf = new com.aspose.pdf.facades.PdfFileEditor();

pdf.makeNUp(inputFile, outFile, 2, 2);

Hi Nayyer,

I’ve tried to generate the pdf file according to your advices, based on the pdf library 4.4.0, with com.aspose.pdf.facades.PdfFileEditor. But I don’t understand why the result file is not created.
I’ve used the com.aspose.pdf.facades.PdfFileEditor, of the 4.1.0 library with the same result.
The file is created only when I use PdfFileEditor of the pdf-kit library.
I’ve joined to this mail, the project I’ve created to test.

Best regards.
Christophe


Hi Christophe,


We are sorry for the inconvenience caused. Can you please try Aspose.Pdf for Java 4.2.1 and share the results? We have a known Aspose.Pdf for Java conflict issue with Junit and log4j, although it is fixed now in upcoming release 4.5.0.

Best Regards,