Skip to main content
Solved

PDFPageFormatter Not Filling Page

  • September 4, 2019
  • 3 replies
  • 33 views

deanhowell
Influencer
Forum|alt.badge.img+23

I have an issue where I am trying to create a PDF output but the data is not filling the objects defined.

 

The data object is defined to fill the majority of the page but as seen below the output only fills a portion of the page.

 

 

Is there a way to force the data to fill the area defined?

 

Here is the workspace that I am using -

Best answer by gio

@deanhowell

You have not added sample data alas (or luckily.;)

 

But i can guess..

 

PDF Pageformatter has the annoying flaw of centering everything.

So every port wil be individualey centered in it's defined pageframe.

 

So assuming the pdf you post is centered, the total extent is larger than the visibly drawn objects.

Stated differently, the center is not the center of the black bounded box.

To fill it out to the black border, you need to make the objects send to the port the only objects. That is, select the black bordered extent and nothing else outide it before sending it to the formatter.

 

Safe is seriously overdue on fixing that. ( i find this strange as you can simply calculate it)

View original
Did this help you find an answer to your question?

3 replies

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • Best Answer
  • September 5, 2019

@deanhowell

You have not added sample data alas (or luckily.;)

 

But i can guess..

 

PDF Pageformatter has the annoying flaw of centering everything.

So every port wil be individualey centered in it's defined pageframe.

 

So assuming the pdf you post is centered, the total extent is larger than the visibly drawn objects.

Stated differently, the center is not the center of the black bounded box.

To fill it out to the black border, you need to make the objects send to the port the only objects. That is, select the black bordered extent and nothing else outide it before sending it to the formatter.

 

Safe is seriously overdue on fixing that. ( i find this strange as you can simply calculate it)


deanhowell
Influencer
Forum|alt.badge.img+23
  • Author
  • Influencer
  • September 6, 2019
gio wrote:

@deanhowell

You have not added sample data alas (or luckily.;)

 

But i can guess..

 

PDF Pageformatter has the annoying flaw of centering everything.

So every port wil be individualey centered in it's defined pageframe.

 

So assuming the pdf you post is centered, the total extent is larger than the visibly drawn objects.

Stated differently, the center is not the center of the black bounded box.

To fill it out to the black border, you need to make the objects send to the port the only objects. That is, select the black bordered extent and nothing else outide it before sending it to the formatter.

 

Safe is seriously overdue on fixing that. ( i find this strange as you can simply calculate it)

Thanks @gio, you have hit the nail on the head. There is some label text that seems to extend outside the bounding box, although not visible. I looking at using a clipper or spatial filter but not having much luck yet. Thanks for steering me in the right direction.


deanhowell
Influencer
Forum|alt.badge.img+23
  • Author
  • Influencer
  • September 6, 2019
deanhowell wrote:

Thanks @gio, you have hit the nail on the head. There is some label text that seems to extend outside the bounding box, although not visible. I looking at using a clipper or spatial filter but not having much luck yet. Thanks for steering me in the right direction.

Hello all, just for completeness, the issue was as @gio described but I had to narrow down the culprit. What I discovered is that we have a roads layer where the road name labels contain spaces. These spaces are used to spread the label out along a feature, rather than have multiple road name labels.

Once I remove the spaces using an AttributeTrimmer and StringReplacer the PDF writer works as expected.

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings