span8
span4
span8
span4
Hi,
I am new to FME and I try to generate several PDFs with map-content at once.
I am struggeling with the creation of a dynamic scale bar.
My Inputdataset is a Shapefile with a lot of polygons I want to iterate through.I need to zoom on every single feature and generate a PDF (for every single feature).
Because of big differences in the size of the features, a static scalebar-Image would be no Option.
Im thinking about a pythonscript to fill a mxd-template and generate the pdf with arcpy.
Is there no fme-way to solve the whole problem without a workaround?
Furthermore it would be great to zoom in steps to even scales.
Thank u very much
Hi,
The script uses the pdf format attributes.And is originaly made in 2014 when we hade no Formatter or styler for pdf.
(of course these still do not offer a scale bar)
pdf_dash_line_pattern is a format attribute ( list attribute ) and can have muiltiple patterns stacked.The patterns are controlled using {0}, {1}...etc.
You can find info on the documentation pagehttps://docs.亚搏在线safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/pdf2d/pdf2d.htm.
The 72 in the calculation is 2.54/72 are adobe points.For 1 inches = 72点
Xmaxframe, Xminframe etc.are xmin, xmax etc for the calculated frame based on the spatial content (Boundsextractor) and margins ( top, bottom, left etc.) including freeing space for a data table, logo etc.
Calculation also keeps/controls the aspect-ratio.
Workspace is prtty big and comments are Dutch.It creates a pdf out of random input data and uses only pdf writers.
正如我们在2019年,现在,FME用户一起FME自动升级...你可以使用pdfpageformatters和pdfstylers控制大部分。(pdfformatter需要一些认真改进虽然..)
如果您创建使用PDFPageFormatter(这当然是手动)PDF页面在地图上你
例:
pdf_frame_rectangle(字符串)121 407 416 618
pdf_world_rectangle(字符串)90099.75299999863 459364.3370000012 95920.63399999961 466645.12900000066
正如你可以在2个输出属性frame_rect是Adobe分,世界台看到(在这种情况下米)
你可以使用世界和帧矩形的大小来计算你的scalevalues和-bars。
此外,通过使用2个相同pdfformatters你可以有第一输出需要相关的值,这样你就可以有scalevalues和-bars放在第二格式。
(这是因为没有为格式输入(..major遗漏无属性或参数控制!)
这个想法是,页框(称为通过FME frame_rectangle)是土坯分和mapunits的worldrectangle(如1米印刷在1厘米pageunit具有1/100的缩放)
我会试着翻译了荷兰,并以“不敏感”的数据取代输入,还得需要一段时间这一点。
Hi gio,
Is it possible to post a.fmwtfor the exemple because I don't understand all the steps of the pics ?
Thanks in advance.
Pierre
I looked up the part in a old pdf-creation script of mine.
Here is a pic
schaal = scale (Dutch)
xmax, xmin etc.is extent of bounding box of object, the pdf_world_rectangle including some margins)
xmaxFrame etc.form the calculated (to keep aspect ratio of boundingbox) pdf_frame_rectangle
see pic here
(I used the fme readers and writers pdf section to build these.
Can be found on fme documentation page)
Fme PDFPageFormatter lacks parameter control trough attribute and has no output attributes.
You can do that by calculating the worldframe (contains the map) vs its content.
Group by ID of objects to get the scale info of each object.Scale is dictated by the bounds of the objects (including maybe some margin) and the frame size.
(see fme readers and writers for these parameters of the pdf writer)
And create a scale bar by creating 2dboxes (or construct them from polylines)
Has anyone used FME to create a map?6 Answers
Outputting individual Excel row and jpg image to an individual PDF report7 Answers
write to PDF3 Answers
How do I convert a .las file to a .pdf file?1 Answer
converting a pdf to excel4 Answers
© 2019 Safe Software Inc |Legal