1. erwin monreal
  2. PowerBuilder
  3. Friday, 26 July 2024 01:35 AM UTC

I am on Powerbuilder 2022 R3 and I am looking into using the new PDFDocument functionality

I can't seem to find the functionality to add paging into the document. Say for example "Page 5 of 20"

if I am importing 5 datawindows into a document I imagine that the paging cannot come from each datawindow and should be added after the pdf is built. Is there functionality for this?

 

 

Accepted Answer
René Ullrich Accepted Answer Pending Moderation
  1. Friday, 26 July 2024 05:20 AM UTC
  2. PowerBuilder
  3. # Permalink

You could loop through all pages of the document (see GetPage, GetPageCount) and add a text with the page number (see AddContent). 

Comment
There are no comments made yet.
erwin monreal Accepted Answer Pending Moderation
  1. Friday, 26 July 2024 06:37 AM UTC
  2. PowerBuilder
  3. # 1

hi thanks for this... i did see this function but i couldnt find a parameter or an example on how to set the position of the newly added text. Say for example I want to set it at the header or footer or somewhere else. Can this be done?

Comment
  1. René Ullrich
  2. Friday, 26 July 2024 07:22 AM UTC
For all visible PDF conent objects you can set position and size: https://docs.appeon.com/pb2022r3/objects_and_controls/PDFVisibleContent_object.html
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.