Hi Good day,
we are currently, having serious production issues with certain files, are failing to convert to pdf using ASPOSE java.
Prasad Dasari
Hi Good day,
we are currently, having serious production issues with certain files, are failing to convert to pdf using ASPOSE java.
Hi Prasad,
Document doc = new Document();<o:p></o:p>
doc.getPages().add();
com.aspose.pdf.Image image= new com.aspose.pdf.Image();
image.setFile(myDir+"226041433.tif");
doc.getPages().get_Item(1).getParagraphs().add(image);
doc.save(myDir+"226041433.pdf");
Please feel free to contact us for any further assistance.
Best Regards,
Hi Good day,
Hi Prasad,
We apologize for your inconvenience.
Hi Prasad Dasari,
<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif”;
mso-fareast-font-family:“Times New Roman”;color:#333333;mso-ansi-language:EN-ZA;
mso-fareast-language:EN-ZA;mso-bidi-language:AR-SA”>Hi Good day,
Hi Parasad,
Hi Prasad,
long startTime = System.currentTimeMillis();<o:p></o:p>
// Instantiate Document Object
Document doc = new Document();
// Add a page to pages collection of document
Page page = doc.getPages().add();
// Set margins so image will fit, etc.
page.getPageInfo().getMargin().setBottom(0);
page.getPageInfo().getMargin().setTop(0);
page.getPageInfo().getMargin().setLeft(0);
page.getPageInfo().getMargin().setRight(0);
// Create an image object
com.aspose.pdf.Image image1 = new com.aspose.pdf.Image();
// Add the image into paragraphs collection of the section
page.getParagraphs().add(image1);
// Set the image file stream
image1.setFile("C:/Users/Home/Downloads/MultipeTIFFFiles/Page0013.tif");
image1.setFixHeight(PageSize.A4_HEIGHT);
image1.setFixWidth(PageSize.A4_WIDTH);
// Save resultant PDF file
doc.save("E:/data/Page0013.pdf");
long finalz = System.currentTimeMillis();
long elapsedTime = finalz - startTime;
System.out.println(elapsedTime);
Please feel free to contact us for any further assistance.
Best Regards,
Hi Good day,
HI Good day,
metropolitanhealth:With reference to PDFNEWJAVA-34838 from TIFF to PDF conversion ,is there any feedback?Hi Prasad,Thanks for your patience and sorry for the delayed response.The above stated issue is still under investigation and I am afraid due to some technical difficulties, its not yet resolved. However as soon as we have some definite updates regarding its resolution, we will let you know.
metropolitanhealth:Pls find the attachment for piece of code running in PROD and also TIF file.We had a latest issue for this specific image,PLs Download the .tif (attached) and open with ‘WindowsPhotoViewer’,you would be able to see 2 images internally (TifImagesDescription.docx attached),but when we do a test ,only one image is getting converted and the rest is ignored by Aspose and even that file is not properly formatted…Pls find the PDF attached that came out when i did my test? i 've tested by sending email to my service that will convert email body and attachment and merge into one singled PDF…Hi Prasad,I have tested the scenario and have observed that both TIFF frames are being converted to PDF format but there are some formatting issues with first frame of PDF file. For the sake of correction, I have separately logged this problem as PDFNEWJAVA-35562 in our issue tracking system. We will further look into the details of this problem and will keep you posted on the status of correction. Please be patient and spare us little time. We are sorry for this inconvenience.
Good day,
Hi Prasad,
long startTime = System.currentTimeMillis();<o:p></o:p>
// Instantiate Document Object
Document doc = new Document();
// Add a page to pages collection of document
Page page = doc.getPages().add();
// Set margins so image will fit, etc.
page.getPageInfo().getMargin().setBottom(0);
page.getPageInfo().getMargin().setTop(0);
page.getPageInfo().getMargin().setLeft(0);
page.getPageInfo().getMargin().setRight(0);
// Create an image object
com.aspose.pdf.Image image1 = new com.aspose.pdf.Image();
// Add the image into paragraphs collection of the section
page.getParagraphs().add(image1);
// Set the image file stream
image1.setFile("C:/pdftest/000000000000000_013FJMAV3700002_0.000.tif");
image1.setFixHeight(com.aspose.pdf.PageSize.getA4().getHeight());
image1.setFixWidth(com.aspose.pdf.PageSize.getA4().getWidth());
//image1.setFixWidth(PageSize.A4_WIDTH);
// Save resultant PDF file
doc.save("c:/pdftest/000000000000000_013FJMAV3700002_0.000.pdf");
long finalz = System.currentTimeMillis();
long elapsedTime = finalz - startTime;
System.out.println(elapsedTime);
Hi Good day,
Hi Prasad,
Hi Good day,
Hi Prasad,