Flexible PDF Reporting Using FME

  • 584 views
Uploaded on

Presented by Nic Ranicar, Front Point Consulting …

Presented by Nic Ranicar, Front Point Consulting
See more FME World Tour 2014 presentations at www.safe.com/recap2014

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
584
On Slideshare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
8
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • pageCoordinates is set for each Feature Type, all other values are attributes on individual featuresTo write a feature directly to a page, set: pdf_page_number, pageCoordinates=yesTo write a feature to a frame, set: pdf_frame_name, pdf_frame_rectangle, pdf_world_rectangle, pageCoordinates=no
  • Also need to determine page location for section titles and feature attributes
  • Also need to determine page location for section titles and feature attributes

Transcript

  • 1. CONNECT. TRANSFORM. AUTOMATE. Flexible PDF Reporting Using FME Nicholas Ranicar Front Point Consulting
  • 2. Objective  Project  Cadastral data translation and validation process for the Regional Municipality of Wood Buffalo (Tesera Systems)  Required solution  Standalone FME Workspace or Transformer  PDF report output  Visualisation of error features on context map, separate attribution section
  • 3. Source Data  SHP file containing report features  FFS file of background features  FFS file of background text
  • 4. Required Output
  • 5. Challenge  FME PDF Writer  “The document will have one page and features will be drawn in a rectangular region of the page called the viewport.”  Required output:  Multiple pages  Multiple regions per page  Optional regions per page
  • 6. Solution: Enabling PDF Writer Multi-Page Support  A PDF document can have 1 or more pages: pdf_page_number  A page can have 1 or more frames: pdf_frame_name  position of the frame on the page: pdf_frame_rectangle  extent of the "map" inside the frame: pdf_world_rectangle  A feature can be written directly to the page or relative to a frame: pageCoordinates [yes|no]
  • 7. Solution: Development of the FME Workflow  Build page elements  Calculate number of report sections required  Create a new feature for each section title  Assign each report feature to a section  Create frame as bounding box with 100m buffer around each report feature  Build subset of background features, clipped to frame  Define pdf_world_rectangle for each frame  Duplicate each report feature as a text feature for attribute reporting
  • 8. Solution: Development of the FME Workflow  Position page elements  Calculate sizes of page elements (section title, map frame, attribute data)  Calculate number of page elements per page (with or without section title) based on PDF page size  Calculate the position of each element on the page (ie. x/y location in PDF page coordinates)  Assign a page number to each element  Assign a frame number and page number to each report feature
  • 9. What Makes This Flexible?  At runtime the user can specify page layout options, e.g. page size, margins, frame size, etc.  Demo
  • 10. Thank You!  Questions?  For more information:  Front Point Consulting  Nic Ranicar : front.point.consulting@gmail.com