feristhia / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

odt->pdf converter problem with "negative" paragraph first line hanging indent #366

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create any odf template with paragraph having first line hanging indent. 
(see attached file)
2. Use XDocReport code to convert this template to pdf
3. Check resulting PDF. (Paragraph formatting is gone)

What is the expected output? What do you see instead?
Formatting should not be removed while converting this file to pdf.

What version of the product are you using? On what operating system?
xdocreport-1.0.3
OS: Windows 7
MS Word 2010

Please provide any additional information below.
This can be tested with below project
https://code.google.com/p/xdocreport/downloads/detail?name=odtandvelocity.conver
ters-1.0.3-sample.zip&can=2&q=

Original issue reported on code.google.com by harshald...@gmail.com on 18 Feb 2014 at 10:00

Attachments:

GoogleCodeExporter commented 9 years ago
Attaching output PDF as well generated by the above mentioned project.

Thanks,
Harshal

Original comment by harshald...@gmail.com on 18 Feb 2014 at 10:06

Attachments:

GoogleCodeExporter commented 9 years ago
@Leszek have you time to see the problem?

Thank's!

Original comment by angelo.z...@gmail.com on 18 Feb 2014 at 10:11

GoogleCodeExporter commented 9 years ago
FYI - Just checked that, similar kind of functionality can be achieved using 
following piece of code while generating pdf using iText.

Paragraph p = new Paragraph("Some random text", font);
p.setIndentationLeft(10);
p.setFirstLineIndent(-10);
document.add(p);

Please check if this kind of fix can be made to xdocreport code to handle first 
line hanging use case.

Thanks,
Harshal

Original comment by harshald...@gmail.com on 18 Feb 2014 at 12:01

GoogleCodeExporter commented 9 years ago
Problem fixed for 1.0.4. See git commit at 
https://code.google.com/p/xdocreport/source/detail?r=3b0ca3c188f4adeecf7d229e913
fe0f7093666cd

Original comment by angelo.z...@gmail.com on 18 Feb 2014 at 1:21

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks for the update. Can you please tell me which specific jar do I need to 
change?
and where can I download this jar? Please provide a link.

Original comment by harshald...@gmail.com on 18 Feb 2014 at 2:12

GoogleCodeExporter commented 9 years ago
XDocReport is building (see job 
https://opensagres.ci.cloudbees.com/job/xdocreport/613/), so JAR are not 
available in the central maven respository. 

Once the build is finished, I suggest you to use maven to get the snaphot 
1.0.4-SNAPHOT. I think we will create a new release next week.

Original comment by angelo.z...@gmail.com on 18 Feb 2014 at 2:12

GoogleCodeExporter commented 9 years ago
I am not using maven. Is there any other way to download?

Original comment by harshald...@gmail.com on 18 Feb 2014 at 3:08

GoogleCodeExporter commented 9 years ago
Buidl was done. try download jar 
https://oss.sonatype.org/content/repositories/snapshots/fr/opensagres/xdocreport
/org.odftoolkit.odfdom.converter.pdf/1.0.4-SNAPSHOT/org.odftoolkit.odfdom.conver
ter.pdf-1.0.4-20140218.143844-9.jar

But I don't remember if there is some JARs that you wish to download. Th ebest 
mean is to use maven or waith for the release next week.

Original comment by angelo.z...@gmail.com on 18 Feb 2014 at 3:23

GoogleCodeExporter commented 9 years ago
Working fine now :)
Thanks a lot for the help!

Original comment by harshald...@gmail.com on 18 Feb 2014 at 3:32