Skip to main content
Question

How to change PDF 2D background color

  • September 2, 2016
  • 5 replies
  • 25 views

lazarlubomir
Contributor
Forum|alt.badge.img+7

Hello, I want to convert DGN file to PDF, but in DGN file are features in white color. I need to change background color of PDF 2D to black color, how can I do that please?

Thank You so much!

Lubo

5 replies

itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • September 2, 2016

Hi,

Dont think it is possible in the 2D PDF writer, maybe you should consider the 3D PDF writer where it is possible and actually standard black


takashi
Influencer
  • September 2, 2016

Hi @lazarlubomir, probably it's impossible as Itay mentioned. If you need to use the PDF2D writer anyway, a workaround I can think of is to create a large rectangular polygon which contains all the line features and fill it with the background color, and then write it into the PDF page as the backmost layer. You can control layer drawing order with the 'Layer Order' parameter for each PDF2D writer feature type.


lazarlubomir
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • September 2, 2016
takashi wrote:

Hi @lazarlubomir, probably it's impossible as Itay mentioned. If you need to use the PDF2D writer anyway, a workaround I can think of is to create a large rectangular polygon which contains all the line features and fill it with the background color, and then write it into the PDF page as the backmost layer. You can control layer drawing order with the 'Layer Order' parameter for each PDF2D writer feature type.

So could I export 2D data into 3D PDF writer? Is that problem for FME or not? I attach simple DGN file...

 

 

abc.zip

 

 


takashi
Influencer
  • September 2, 2016
lazarlubomir wrote:
So could I export 2D data into 3D PDF writer? Is that problem for FME or not? I attach simple DGN file...

 

 

abc.zip

 

 

You can write Lines into 3D PDF, but the writer doesn't support rendering Text features. Text features will be written as points.

 

 


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • September 2, 2016
takashi wrote:

Hi @lazarlubomir, probably it's impossible as Itay mentioned. If you need to use the PDF2D writer anyway, a workaround I can think of is to create a large rectangular polygon which contains all the line features and fill it with the background color, and then write it into the PDF page as the backmost layer. You can control layer drawing order with the 'Layer Order' parameter for each PDF2D writer feature type.

Good idea @takashi !

 

 


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