New Forum | Previous | Next | (P-PDF) Developers
Topic: Problems using PDPageLabelNew()
Conf: (P-PDF) Developers, Msg: 137335
Date: 8/5/2005 12:57 AM
In the Core API Reference Guide, the function PDPageLabelNew() takes in parameter a style, which can be of many kinds, including null. The problem is: I can't set a Page Label without setting a style (numbering system).
What I want to do is to label my back pages the same label as the front pages, so I get pages 1, 1, 2, 2, 3, 3, etc. And if I read the reference, I could do it.
So I use the call:
PDPageLabel pageLabel = PDPageLabelNew (m_PDDoc, ASAtomNull, pageIndexLabel.c_str (), static_cast(pageIndexLabel.size ()), NULL);
My pageIndexLabel is a string containing my page number, with some characters, like "#1"...
When I use this call, Acrobat alerts me:
The base pages object is missing or invalid.
I'm using SDK 6.0, on Mac OS 10 and PC Win XP (I've got the problem on both).
Can someone help me on that case please?