I am beginner, I have Sheet, which consists of three parts of data.
I want to create separated bar charts, for each part.
It would also be useful, if you add a source, from which I could learn more about creating charts in excel using Java.
Related
I'm using Apache PDFBox to populate an existing Adobe Acrobat PDF template.
In this template I have fixed sizes of text fields in which I insert data from database.
In one text field the amount of data may vary so it would be great if text field could get bigger or smaller to adjust to the amount of text inserted.
The main problem is that I have another text fields below the one I want to resize dynamically so in case of making it bigger or smaller other text fields have to move relatively
I was searching for the solution but found only offers to resize font dynamically, but it doesn't satisfy my needs. I could create one text field and insert all of my data in it, but some of those text fields must have different color of text so it's important to have different text fields to be able to specify their color in code (as far as I know).
Is that even possible and if not what can I do to achieve the result I'm looking for?
P.S. Our code is based on templates from Adobe Acrobat and Apache PDFBox, so it's more preferable to keep it that way. But if this is not possible with those two, I will be glad to hear your recommendations on what should I use (open source first).
PDF Producer: Adobe Acrobat Pro DC (32-bit) 21.7.20102,
PDF Version: 1.6 (Acrobat 7.x),
Apache PDFBox Version: 2.0.26
You can find an example of my PDF below
I am having trouble implementing properties to a .csv file when I export it through Java. I will mainly be using the .csv in Excel. Is it possible to give bold text or any sort of properties to a .csv file in Java? Specifically, I want to give a background color to certain cells and make some text bold to differentiate the cells from other cells. For example, I want to make the first row in the .csv file bold to show that the first row is like a header.
One restraint, I want to avoid using any API's from the internet.
If you want bold or other features to show up in Excel you need to create an excel file. csv means Comma delimited file. All it has is data separated by commas. No formatting what-so-ever.
I am trying to read the table styles that is in a pptx template.
Tried using XSLFTableStyle xslfTableStyle = xslfTableStyles.getStyles() but that returns empty list.
I am able to see the file which has the table styles in the pptx package in the location ppt/tableStyles.xml which has the styles for all the available tables and also the selected style for this template.
Even if I write some custom code to read this xml, I don't see a way to create a table in a slide using this style. XSLFTable tbl = tableSlide.createTable(); this does not take any style inputs
Any out of the box way to create a table using the available table style?
Think this is not yet developed by Apache POI team, should be in their roadmap
Thanks,
I'm trying to edit a existing PDF file. It is a file where I need to fill in some addresses and other stuff. I want to connect an addressbook to the application so the user can select a user from the addressbook and a part get filled in automatic.
My questions are:
Is it possible to edit a existing PDF file and fill in some fields (+/- 20), because I know there is Itext (http://www.itextpdf.com) but I read that the possiblities are very small.
Or can I better convert the PDF to JPG and get it as background. And create JLabels on the places where I need to fill in the fields. And then print the whole Frame on a A4.
Or are there better posibilities?
So what I need to do, step by step:
Select one of the PDF's (they are in the program)
Fill some fields with content/addresses
Print the PDF/Form with a printer
There is a toolkit given by Adobe named as Acrobat Forms Data Format (FDF) Toolkit which gives API for different languages to fill forms.
You can get the java code at the bottom of that page or check this link
We didn't edit existing PDF's but created totally new letters/reports/doco from our java app using iReport
You could use pdf form and edit field values programmatically using IText or Apache PDFBox (download pdfbox and see SetField.java example)
I would like to create a JTable whose global layout would look somewhat like excel's.
To get this result I used the Groupable Header's code from crionics.com, but as you can see components of the header are not aligned vertically.
Moreover, I would like to be able to write multi line text in the rows of the documents where it's needed, but I am not able to get both multi line cells, multi line header cells, and groupable columns to work at the same time.
Look into the JIDE Grids. If you are working for commercial project, it's cheaper to buy these kind of things than write them yourself.