Package gruppe2.imagingapplication
Class Export
- java.lang.Object
-
- gruppe2.imagingapplication.Export
-
public class Export extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description Export()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
exportImagesToPdf(java.util.Map<java.lang.String,ImageData> images)
This method generates a pdf document and adds images to it based on the HashMap you give it.java.lang.String
getSaveLocation()
Method for getting a path to where the user wants to save the exported document.
-
-
-
Method Detail
-
exportImagesToPdf
public void exportImagesToPdf(java.util.Map<java.lang.String,ImageData> images)
This method generates a pdf document and adds images to it based on the HashMap you give it. Width of image in pdf will be standard A4 width, and height is fixed to image ratio.- Parameters:
images
- Takes a Map that holds the images you wish to export to a pdf document
-
getSaveLocation
public java.lang.String getSaveLocation() throws java.io.IOException
Method for getting a path to where the user wants to save the exported document.- Returns:
- The absolute path where the pdf will be saved
- Throws:
java.io.IOException
-
-