How to convert .mxd file into .pdf file - java

I want to convert .mxd file into .pdf file. I have google under this topic but I ended with nothing. I want to know that can I convert .mxd to .pdf directly or do I need to convert using intermediate conversions?
any help would be appreciate.....
thank you.

Typically .mxd files are mapping files created with ESRI ArcGIS. ArcMap has a tool to export a specific section to a pdf.
If you must do this programmatically (not by using a manual tool) you can do this I believe by publishing the MXD as a map service and then using the JavaScript, etc. APIs to make the conversions.

well i found this
http://arcscripts.esri.com/details.asp?dbid=15139

Related

How to convert the ConfigProperties_server1.props which is extracted from websphere using wsadmin to xml or json file?

This is the Jython script I have used to extract the ConfigProperties_server1.props file:
AdminTask.extractConfigProperties('[-propertiesFileName ConfigProperties_server1.props -configData Server=server1]')
Welcome to SO. The AdminTask.extractConfigProperties command has no option to control the format of the file. The option PortablePropertiesFile might sound promising, but instead it controls whether internal XMI ids are included in the props file. You're going to have to parse the properties file and convert it yourself, the syntax of the file is documented in this IBM KnowledgeCenter topic. Given the complexity of this task, you may want to edit your question and add some detail on what you're trying to accomplish by converting to xml or json format file, so perhaps the community might better help you.

convert .spd file to pdf file

I have an .spd file and I want to convert it to pdf file, I looked for libraries over web but couldn't find any.
Actually, my android app gives me spd and jpg file. I am able to convert from jpg to pdf but it takes a lot of time and I also used different libraries for that but got same time for that process. So I switched to convert spd to pdf file, but I am not able to locate any java based library for that.
It would be great if anyone could suggest any library or something.
Thanks
The extension of SPen's files is indeed .spd. I'm afraid that there is currently no official MIME type associated with .spd files.
You can find offical MIME types in the IANA's MIME Media Types register: http://www.iana.org/assignments/media-types
This might help you:
Go to http://developer.samsung.com/samsung-mobile-sdk/sdk Download
the SDK
Inside the binaries there are some programming guides as mentionned
in 1.3 at http://developer.samsung.com/samsung-mobile-sdk
Have a look to ProgrammingGuide_Pen.pdf
See quote like : The sample application saves the data created with
the Pen package in a file. The application supports the SPD format
for Pen data files and the +SPD data format (image file with added
SPD data) for general image files.

Extract text from PCL6 using Java

I don't have much knowledge regarding PCL6 file format. I wanted to know if there is any way to extract text out of PCL6 file using Java.
Thanks,
Usman
Convert the file to PDF (see Ghostscript/GhostPDL) and then use Apache Tika.
The first step will require to use some Runtime.getRuntime().exec(...)

How to extract data from a pdf file using JPedal?

Actually I am attempting to extract the data from a PDF file but I didn't find any example in the internet and I am asking if there is any possibility that I can use the JPedal library to open to read the data from a PDF file.
You can use PDFBox from Apache.
I am not familiar with JPedal, but I write lots of code that generates and processes pdf files. I use IText and highly recommend it. If you have a specific question on how to process a pdf file, let me know.

Converting .xls to .pdf using Java(or not)

Is there a way to convert a xls file into a pdf?
I want to make a dynamical report directly to pdf file, but didn't find a way to make dynamic columns on iReport, so I've made a method on Java that exports to xls dynamically.
So I was wondering if is there a way to convert this file to pdf, but it need to be on a method from my code. Or if you have a better idea, it can be used too.
Maybe there's a way to make this pdf file from my code as I did with xls. Please help me out.
Thanks.
Try using iText http://itextpdf.com/ - I've used it to create PDFs with columnar structure.
In addition to using iText directly, there are a couple report engines that sit on top of it:
Eclipse BIRT (using 2.1.7, the last MPL/LGPL version)
Jasper Reports (which uses a Very Old version, 1.3.1 IIRC)
This is a commercial solution:
http://www.dancrintea.ro/xls-to-pdf/
If you want open source try jakarta POI.
Try using the Muhimbi PDF Converter Services. It comes with a Java compatible Web Services based interface and sample code. It does other things as well.
I worked on this application, so the usual disclaimer applies.

Categories

Resources