We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Replaceable symbol $p not work in header or footer

<Footer>

<border>

<Top LineWidth='1' >

</Top>

</border>

<Text Alignment="center">

<Segment IsSymbolReplaceable="true">page: $p of $P</Segment>

</Text>

</Footer>

$P is displayed but not $p ...

Please advice...

Hello Minpu,

Thanks for considering Aspose.

I've tested the scenario and I'm able to notice the same problem. I have logged it in our issue tracking system as PDFJAVA-10292. In fact it's a regression bug which is introduced in our recent versions. Meanwhile I've contacted the development team and they are looking into the details of this problem. Soon you will be updated with the status of correction.

We apologize for your inconvenience.

<Footer>

<border>

<Top LineWidth='1' >

</Top>

</border>

<Text Alignment="center">

<Segment IsSymbolReplaceable="true">page: $p of $P</Segment>

</Text>

</Footer>

Thread 1 prints : Page: $p of 5

Thread 2 prints : Page : $p of ( number of total is missing ..)

in each thread , it does same thing to read the same xml template with same header and footer ..

Pdf pdf = Pdf.bindXML(xmlConfig);

Hello,

We are working on this issue now. we will give you a solution in the next two weeks.

Thank you for using our product.

Hi,

We have resolved this issue, you can try the hotfix in the attachment.

Thank you for using our product.

The jar inside attached zip has no class IB : this is exception I getting :

java.lang.NoClassDefFoundError: com.aspose.pdf.elements.IB

at com.aspose.pdf.elements.hb.class$(Unknown Source)

at com.aspose.pdf.elements.hb.if(Unknown Source)

at com.aspose.pdf.elements.gt.(Unknown Source)

at com.aspose.pdf.elements.hh.(Unknown Source)

at com.aspose.pdf.elements.gi.a(Unknown Source)

at com.aspose.pdf.elements.hh.if(Unknown Source)

at com.aspose.pdf.elements.Cell.p(Unknown Source)

at com.aspose.pdf.elements.Table.a(Unknown Source)

at com.aspose.pdf.elements.HeaderFooter.a(Unknown Source)

at com.aspose.pdf.elements.HeaderFooter.a(Unknown Source)

at com.aspose.pdf.elements.Pdf.a(Unknown Source)

at com.aspose.pdf.elements.Pdf.a(Unknown Source)

at com.aspose.pdf.elements.Pdf.save(Unknown Source)

Would you please advice ?

Hi,

We have rebuild the hotfix. You can get it in the hotfix. Hopefully, it will work fine this time.

Thank you for using our product.