Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8.5, 1.8.6
-
None
Description
While converting a 1 page pdf to an image (both attached below), the image converts properly, however the barcodes colours invert.
The code used to do the conversion looks like this right now:
public static void convertPDFToJPG(String src){
try{
//load pdf file in the document object
PDDocument doc=PDDocument.load(new FileInputStream(src));
//Get all pages from document and store them in a list
List<PDPage> pages=doc.getDocumentCatalog().getAllPages();
//create iterator object so it is easy to access each page from the list
Iterator<PDPage> i= pages.iterator();
int count=1; //count variable used to separate each image file
//Convert every page of the pdf document to a unique image file
System.out.println("Please wait...");
while(i.hasNext())
System.out.println("Conversion complete");
}catch(IOException ie)
}
Attachments
Attachments
Issue Links
- is duplicated by
-
PDFBOX-1867 Images improperly rendered
- Closed
- is related to
-
PDFBOX-2435 ConvertToImage Appears To Invert Colors
- Closed