# PDF printing

**URL:** <https://techcommunity.softwareag.com/t/pdf-printing/201740>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, NaturalONE, Natural-for-AJAX\
**Created:** [November 17, 2018, 9:04am UTC](https://techcommunity.softwareag.com/t/pdf-printing/201740 "2018-11-17T09:04:43Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cleyton\_Santana2](https://avatars.discourse-cdn.com/v4/letter/c/f6c823/32.png) [@Cleyton\_Santana2](https://techcommunity.softwareag.com/u/Cleyton_Santana2)\
**Post date:** [November 17, 2018, 9:04am UTC](https://techcommunity.softwareag.com/t/pdf-printing/201740/1 "2018-11-17T09:04:43Z")

</div>

Hello.

I am using the adapter listener com.softwareag.cis.server.adapterlistener.PDFFOPListener to generate PDF.  
In NATPAGE I am using the component rowtablearea2. On the FOP page I’m using the cisfo: rowtablearea2 component.

However, when the PDF is generated, from the second page onwards an empty space is displayed in the  
top of the page, and the print starts almost in the middle of the page. Can you help me with this problem?

The screens are attached.

---

<div class="post-metadata">

**Author:** ![Frederico\_Machado1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/frederico_machado1/32/1208_2.png) [@Frederico\_Machado1](https://techcommunity.softwareag.com/u/Frederico_Machado1)\
**Post date:** [November 22, 2018, 2:19pm UTC](https://techcommunity.softwareag.com/t/pdf-printing/201740/2 "2018-11-22T14:19:48Z")

</div>

Hi Cleyton,

Could you please resend the attachments?

---

<div class="post-metadata">

**Author:** ![Cleyton\_Santana2](https://avatars.discourse-cdn.com/v4/letter/c/f6c823/32.png) [@Cleyton\_Santana2](https://techcommunity.softwareag.com/u/Cleyton_Santana2)\
**Post date:** [November 27, 2018, 7:55am UTC](https://techcommunity.softwareag.com/t/pdf-printing/201740/3 "2018-11-27T07:55:28Z")

</div>

Hi Frederico.

Ok. Here they are.

---

<div class="post-metadata">

**Author:** ![Frederico\_Machado1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/frederico_machado1/32/1208_2.png) [@Frederico\_Machado1](https://techcommunity.softwareag.com/u/Frederico_Machado1)\
**Post date:** [November 27, 2018, 3:57pm UTC](https://techcommunity.softwareag.com/t/pdf-printing/201740/4 "2018-11-27T15:57:03Z")

</div>

Cleyton,

Something is going wrong.

I can´t see the attachments files yet.

Check the size of your files.

---

<div class="post-metadata">

**Author:** ![Cleyton\_Santana2](https://avatars.discourse-cdn.com/v4/letter/c/f6c823/32.png) [@Cleyton\_Santana2](https://techcommunity.softwareag.com/u/Cleyton_Santana2)\
**Post date:** [November 29, 2018, 7:56am UTC](https://techcommunity.softwareag.com/t/pdf-printing/201740/5 "2018-11-29T07:56:31Z")

</div>

Hi,

images attached.

 ![print3.jpg](https://global.discourse-cdn.com/techcommunity/original/2X/4/449024051d60bdf791967141133b0c6fb481223f.jpeg)  
 ![print2.jpg](https://global.discourse-cdn.com/techcommunity/original/2X/5/54d2284ef2bb2f092b65cfc627351cc1a337c0de.jpeg)  
 ![print1.jpg](https://global.discourse-cdn.com/techcommunity/original/2X/d/d286c7f0be2ae7b051fadad44415c06cffcfcdba.jpeg)

---

<div class="post-metadata">

**Author:** ![Frederico\_Machado1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/frederico_machado1/32/1208_2.png) [@Frederico\_Machado1](https://techcommunity.softwareag.com/u/Frederico_Machado1)\
**Post date:** [November 29, 2018, 3:12pm UTC](https://techcommunity.softwareag.com/t/pdf-printing/201740/6 "2018-11-29T15:12:04Z")

</div>

Cleyton,

In order to help you, I need to know how your controls are disposed in the fop file, specifically in the layout pane. Could you please send me your FOP file?

---

<div class="post-metadata">

**Author:** ![Cleyton\_Santana2](https://avatars.discourse-cdn.com/v4/letter/c/f6c823/32.png) [@Cleyton\_Santana2](https://techcommunity.softwareag.com/u/Cleyton_Santana2)\
**Post date:** [December 20, 2018, 9:04am UTC](https://techcommunity.softwareag.com/t/pdf-printing/201740/7 "2018-12-20T09:04:04Z")

</div>

Frederico,

Yes I can. The file attached.  
[C\_fop.zip](https://techcommunity.softwareag.com/uploads/short-url/lDvVXd7q315MiE6V8Moyt71MeKv.zip) (754 Bytes)

---

<div class="post-metadata">

**Author:** ![Frederico\_Machado1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/frederico_machado1/32/1208_2.png) [@Frederico\_Machado1](https://techcommunity.softwareag.com/u/Frederico_Machado1)\
**Post date:** [December 27, 2018, 8:46am UTC](https://techcommunity.softwareag.com/t/pdf-printing/201740/8 "2018-12-27T08:46:08Z")

</div>

Hi Cleyton,

I´ve taken a look at your FOP page.  
You have to control the header height setting up the Cisfo:foppage2 headerheight property.

To solve your issue, follow the items below:

1. Clean up the Cisfo:header2 paddingbottom and Cisfo:body2 margintop properties;
2. Change the Cisfo:foppage2 headerheight property to a value as your needs, for instances 1.5cm.

Let me know if it helped you.

---

<div class="post-metadata">

**Author:** ![Cleyton\_Santana2](https://avatars.discourse-cdn.com/v4/letter/c/f6c823/32.png) [@Cleyton\_Santana2](https://techcommunity.softwareag.com/u/Cleyton_Santana2)\
**Post date:** [March 18, 2019, 11:52pm UTC](https://techcommunity.softwareag.com/t/pdf-printing/201740/9 "2019-03-18T23:52:15Z")

</div>

I made the changes you said, Frederico. Everything worked very well. Thank you very much.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:41pm UTC](https://techcommunity.softwareag.com/t/pdf-printing/201740/10 "2021-04-02T15:41:49Z")

</div>


