Rank: Newbie
Joined: 3/14/2016 Posts: 6
|
Hi there,
we are transforming XML --> XSLFO --> PDF. For the first step we use the Altova COM API in .NET, for the second step Apache FOP.
My question is: Is it possible to get the number of pages of the resulting PDF file either in the first step in .NET or in the second step in the Java programm that is doing the XSLFO transformation?
We would like to be able to write a file to disc with the number of pages per generated PDF file (and they are variable in their number of pages, e.g. as they have running tables/sums), hence the question.
Many thanks!
|
Rank: Advanced Member
Joined: 2/27/2009 Posts: 563
|
You will only be able to get a fixed number of pages from the PDF output, not before. You can find methods of getting this via .NET out on the web.
|