PDF printer that can be controlled by .NET (exporting from Maptitude)

隐身守侯 提交于 2019-12-13 05:03:59

问题


In my current project, I created an automatic process that controls the Maptitude application, and prints the results to PDFs using Maptitude's API.

The problem is that Maptitude neither has an option to save the outcome to PDF, nor return the outcome as an object. Therefore I worked around this by installing a pdf printer, and gave the command to Maptitude in C# to print using that pdf printer. However, even with this approach, the the pdf printer pops up a prompt asking for output destination and stopping the automation.

For that reason, I'm trying to find an pdf printer that have an API for .Net, or at least does not give any prompt when print. Does such pdf printer exist?

Maptitude is a GIS


回答1:


BullZip PDFprinter may work without prompt on a single file. See BullZip




回答2:


The Maptitude API has a number of ways of getting a map out of Maptitude - including as an object. Look in the SDK documentation, specifically under CopyMapToClipboard, CopyMapToOLE, SaveMapToMetafile and/or SaveMapToBitmap() functions. These are all accessible through GISDK, the COM interface, and .NET.

You can then import these into your PDF if that is what you want (the user documentation recommends this approach for chart->PDF exports).



来源:https://stackoverflow.com/questions/30876459/pdf-printer-that-can-be-controlled-by-net-exporting-from-maptitude

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!