If you are unable to create a new account, please email support@bspsoftware.com

 

How to keep PDF size of header not be impacted by other elements of page size

Started by GKhabou, 26 Aug 2019 06:08:11 AM

Previous topic - Next topic

GKhabou

Hello guys  :)

I am generating PDF reports in A4 format.
Each report contains 5 pages with header, body and footer.
The pages contains crosstabs and charts

The problem is that the header size is changing depending on the quantity of data :

  • When crosstabs and charts size expands ==> the header size is decreasing,
    When crosstabs and charts contains little quantity of data ==> the header size is increasing.

So, the PDF report is generated with different header sizes over the pages.

NB : the header content is static and is the same in all pages.

Any help or suggestion will be appreciated.

Thanks in advance.

GK

MFGF

Quote from: GKhabou on 26 Aug 2019 06:08:11 AM
Hello guys  :)

I am generating PDF reports in A4 format.
Each report contains 5 pages with header, body and footer.
The pages contains crosstabs and charts

The problem is that the header size is changing depending on the quantity of data :

  • When crosstabs and charts size expands ==> the header size is decreasing,
    When crosstabs and charts contains little quantity of data ==> the header size is increasing.

So, the PDF report is generated with different header sizes over the pages.

NB : the header content is static and is the same in all pages.

Any help or suggestion will be appreciated.

Thanks in advance.

GK

Hi,

Did you set a specific size for the headers in your report (Size & Overflow property)? What specific structures are you using in your headers (tables/blocks etc) and how are they sized?

MF.
Meep!

GKhabou

Hi MFGF,

Yes, the size of the header is specified (Size and Overflow property).

The header is made from three parts :
- A logo in the left side : image > cell > line > table (T1) > cell > line > table (T2) > header
- Custom text in the middle : text > bloc > cell > line > table (T1) > cell > line > table (T2) > header
- Month in the right side : text > singleton > bloc > cell > line > table (T1) > cell > line > table (T2) > header

Both T1 and T2 have definitions for Size & Overflow property.

I do not totally agree with these encapsultations that can be lightened (that was made by another developer).

But what solutions / tips would you suggest ?

Thanks in advance.

GK

MFGF

Quote from: GKhabou on 26 Aug 2019 09:26:09 AM
Hi MFGF,

Yes, the size of the header is specified (Size and Overflow property).

The header is made from three parts :
- A logo in the left side : image > cell > line > table (T1) > cell > line > table (T2) > header
- Custom text in the middle : text > bloc > cell > line > table (T1) > cell > line > table (T2) > header
- Month in the right side : text > singleton > bloc > cell > line > table (T1) > cell > line > table (T2) > header

Both T1 and T2 have definitions for Size & Overflow property.

I do not totally agree with these encapsultations that can be lightened (that was made by another developer).

But what solutions / tips would you suggest ?

Thanks in advance.

GK

Hi,

As well as the sizes of the tables (T1 and T2), also take a look at the size of each block and of each table cell, plus of course the size of the overall Page Header.

Have you made sure that the "Content is clipped" option is selected in each Size & Overflow dialog (where available - usually in the block)?

MF.
Meep!