Hi,
Greetings!
We are evaluating pdf tool for one of our web application which runs in Java/J2EE.
we came to know about aspose and wanted to check the feasibility of integration with application.
below are few of our questions which we need some clarifications.
. Html to pdf conversion
. support for all standard html tags
. editing the pdf file to add images at absolute position, replace text
. support for multilingual(English and Arabic)
. adding barcode generated to existing pdf file
. appending pdf file to existing(merge two pdf files)
. adding header/footer images
.
For supporting the above mentioned features, which all packages/licenses we need to purchase from Aspose and the cost of the packages.
Please let us know the details on the product purchase and required licenses. And also we need technical support to write small pocs for the same.
Thanks,
Shivaji
We are evaluating pdf tool for one of our web application which runs in Java/J2EE.
we came to know about aspose and wanted to check the feasibility of integration with application.
below are few of our questions which we need some clarifications.
. Html to pdf conversion
Hi Shivaji,
Thanks for your interest in our API’s.
We are pleased to share that Aspose.Pdf for Java supports the feature to convert HTML file to PDF format. For more information, please visit Convert HTML to PDF Format
. support for all standard html tags
As we know that HTMl is a complex format but still Aspose.Pdf supports most of the HTML tags. Please try using our API and in case you encounter any issue, please share your source HTML file.
. editing the pdf file to add images at absolute position, replace text
For required information, please visit
. support for multilingual(English and Arabic)
Our API supports multilingual and UniCode characters. Therefore in order to display correct output, you need to use appropriate font while creating/manipulating PDF document. For more information, please visit Add Text to an existing PDF file
. adding barcode generated to existing pdf file
BarCode can be added as an image or it can be used to fill BarCode form field. For more information, please visit Add Image to Existing PDF File
. appending pdf file to existing(merge two pdf files)
Please visit the following links for further details on Concatenate PDF Files
. adding header/footer images
Please visit the following links for required information on
For supporting the above mentioned features, which all packages/licenses we need to purchase from
Aspose and the cost of the packages.
For above stated requirements, you need to purchase Aspose.Pdf for Java. Please visit the following link for more information on Pricing.
Please let us know the details on the product purchase and required licenses. And also we need technical support to write small pocs for the same.
Please download the latest release of Aspose.Pdf for Java 10.4.0 and before you proceed with API purchase, you may consider requesting a 30 days temporary license to test the API without any limitations. For more information, please visit Get a temporary license
In case you need any assistance or you have any query, please feel free to post your queries within this forum and we will be more than happy to assist you in that regard.
Hi Nayyer Shahbaz,
Thank you for the information provided.
Please confirm if the only Aspose.pdf for java is enough for the all above mentioned features to be incorporated.
I have read html to pdf conversion is needed Aspose.Word for java. If aspose.pdf is good enough to achieve all features which we are looking for.
One more: We need to generate one barcode also and add in pdf file, please suggest if these all included in Aspose.pdf aswell.
Thanks,
Shivaji
Hi Shivaji,shivaji_dole@infosys.com:Please confirm if the only Aspose.pdf for java is enough for the all above mentioned features to be incorporated.
Aspose.Words for Java has its own document manipulation and rendering engine and it also offers the feature to load HTML files and transform them to PDF format. However the usage of Aspose.Words for Java is based upon your own choice.shivaji_dole@infosys.com:I have read html to pdf conversion is needed Aspose.Word for java. If aspose.pdf is good enough to achieve all features which we are looking for.
In order to programatically generate BarCode image, you need to try using Aspose.BarCode for Java, save the BarCode in image format and place it inside PDF document.shivaji_dole@infosys.com:One more: We need to generate one barcode also and add in pdf file, please suggest if these all included in Aspose.pdf aswell.
Hi Nayyer,
Thank you for the reply and information provided.
I had few more clarifications on the same.
1. I tried using the Aspose.Pdf for conversion of HTML to PDF, I see its not same as Aspose.Words, the alignment and text is not looking same as html preview, please suggest me as how can i achieve this using aspose.pdf package.
2. Using Aspose.Pdf, I was trying to leave margin for the first page of the pdf during html to pdf converions. I would needed this to add an image in that page just above to Footer. Please provide me some sample which i can try.
Please suggest me some workarounds for the above mentioned.
Thanks,
Shivaji
Hi,
1.
I am trying to use the Aspose.Pdf for conversion of HTML to PDF, I observed that, its
not same as Aspose.Words, the alignment and text(arabic locale) is not looking same as
html preview, please suggest me as how can i achieve this using
aspose.pdf package for html to pdf.
2. Using Aspose.Pdf, I was trying to leave margin for the first page of the pdf
during html to pdf converions. I would needed this to add an image in
that page just above to Footer(not in footer). Please provide me some sample which i
can try.
Please suggest me some workarounds for the above mentioned.
Thanks,
Shivaji
can anyone provide me details on above mentioned queries.
Hi Shivaji,
Thanks for sharing the details and sorry for the delayed response.
Aspose.Pdf and Aspose.Words have their own rendering engines and there might be difference in output being generated by both API’s. However if you are facing any issue while converting HTML file to PDF format, please share the resource file, so that we can test the conversion in our environment.
- Using Aspose.Pdf, I was trying to leave margin for the first page of the pdf during html to pdf converions. I would needed this to add an image in that page just above to Footer. Please provide me some sample which i can try.
I am afraid you might not be able to make any changes when HTML is being transformed to PDF format. However once the resultant PDF file is generated, you can update page dimensions or add margin information, so that any further manipulation i.e. image addition etc can be performed. For further details, please visit Update Page Dimensions
We are sorry for your inconvenience.
shivaji_dole:
2. Using Aspose.Pdf, I was trying to leave margin for the first page of the pdf during html to pdf converions. I would needed this to add an image in that page just above to Footer(not in footer). Please provide me some sample which i can try.
HHtmlLoadOptions htmlLoadOptions = new HtmlLoadOptions();
MarginInfo marginInfo= new MarginInfo();
marginInfo.setTop(20);
marginInfo.setBottom(40);
htmlLoadOptions.getPageInfo().setMargin(marginInfo);
Document doc=new Document("input.html",htmlLoadOptions);
doc.save("output.pdf");
Please feel free to contact us for any further assistance.
Best Regards,
Hi Nayyer,
Below are the details on the above mentioned issues.
#1 - please find the attached zip(sample html, pdf generated and also java code) which i am using to generate pdf, I see listing is not correct in case of Arabic locale(RTL).
#2 - Now am able to provide the bottom margin with MarginInfo passed to htmlloadoptions and generate pdf during conversion.
Please check and let me know if anything missing.
Thank you!
Shivaji
Hi Shivaji,shivaji_dole:
#1 - please find the attached zip(sample html, pdf generated and also java code) which i am using to generate pdf, I see listing is not correct in case of Arabic locale(RTL).
sake of correction, I have logged this problem as PDFNEWJAVA-35023 in
our issue tracking system. We will further look into the details of this
problem and will keep you updated on the status of correction. Please be
patient and spare us little time. We are sorry for this inconvenience.
Hi Nayyer,
Thank you for logging this issue.
Also, did you verify the issue with Listing(ul/ol) tags? is it same as RTL issue.
Please let me know if more details required.
Thanks,
Shivaji
Hi Nayyer,
Can we have some timelines on the resolution of the issue#PDFNEWJAVA-35023 reported, based on that we will notify customer.
Thanks,
Shivaji
shivaji_dole:Hi Nayyer,
Thank you for logging this issue.
Also, did you verify the issue with Listing(ul/ol) tags? is it same as RTL issue.
Please let me know if more details required.
Hi Shivaji,shivaji_dole:Hi Nayyer,
Can we have some timelines on the resolution of the issue#PDFNEWJAVA-35023 reported, based on that we will notify customer.
Hi Nayyer,
I have already attached with arabic and english converted pdf files.
If you see the arabic pdf file, the bullets(ul) is not displayed properly.
Please let me know if you required more details.
Thanks,
Shivaji
Hi Shivaji,shivaji_dole:I have already attached with arabic and english converted pdf files.
If you see the arabic pdf file, the bullets(ul) is not displayed properly.
Hi,
I have attached now, as txt file(changed extension to txt, as html not able to attach).
But content might have been changed.
Please check and let me know if you want me to regenerate and provide you the exact output.
Thanks,
Shivaji
Hi Shivaji,shivaji_dole:If you see the arabic pdf file, the bullets(ul) is not displayed properly.
I
have tested the scenario and I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as PDFNEWJAVA-35033. We
will investigate this issue in details and will keep you updated on the status
of a correction. <o:p></o:p>
We apologize for your inconvenience.
The issues you have found earlier (filed as PDFJAVA-35033) have been fixed in Aspose.PDF for Java 24.6.