IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Get number of pages of resulting PDF doc in .NET Options · View
Stevo42
Posted: Friday, September 9, 2016 6:03:35 AM
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!

K101
Posted: Friday, September 9, 2016 11:30:20 AM
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.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.