问题
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