Skip to main content
Question

writing vector and image to PDF

  • January 19, 2018
  • 5 replies
  • 125 views

boubcher
Contributor
Forum|alt.badge.img+11

looking to write in pdf file a polygon with a raster image clipped to. they will be 2 views one closer view and second with fare view

Any suggestions

5 replies

LizAtSafe
Safer
Forum|alt.badge.img+15
  • Safer
  • January 19, 2018

boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • January 20, 2018

Thanks for the info,

I manage to create a WS ( staticmap-to-pdf.fmwt), using imageFetcher transformer, the only problem is the PDF is writing only, the image, not the vector

Any thoughts please

Thanks


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • January 22, 2018

Actually your geometry is projected above the image raster...very tiny.

You see 2 objects entering the pdf-writer the raster and the geometry.

If you put the geometry in a separate input on the PDF-Formatter, align (using a affiner and the center points) them and give them the same page object size the geometry will be bigger. But not the same size still.

But the map api automatically sets a margin so more work is needed to get them to align exactly.


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • January 22, 2018

Thanks

but if we do it as 2 entry to the PDF , we will have a problem to get the right size and location

is there any sugestion on how we could fetch the image then project the vector , then write it to the PDF , this way we could avoid any position issue


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • January 22, 2018

somehow you need to extract the projection.

Looks like you fair better using the script examples rather then the imagefetcher.

Got more control over the google map api.

With fme I got as far as this...using the api url. Can set margin to 0, but not height to 100% on the url. (or at least I failed in doing so)


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