pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kernel freak <kernelfr...@gmail.com>
Subject Re: Regarding PDFBox book or documentation
Date Fri, 07 Nov 2014 09:09:40 GMT
On Fri, Nov 7, 2014 at 10:06 AM, Maruan Sahyoun <sahyoun@fileaffairs.de>
wrote:

> Hi,
>
> Am 07.11.2014 um 09:50 schrieb Kernel freak <kernelfreak@gmail.com>:
>
> > On Fri, Nov 7, 2014 at 9:32 AM, Maruan Sahyoun <sahyoun@fileaffairs.de>
> > wrote:
> >
> >> Hi
> >>
> >>> On Fri, Nov 7, 2014 at 9:05 AM, Maruan Sahyoun <sahyoun@fileaffairs.de
> >
> >>> wrote:
> >>>
> >>>> Hi
> >>>>
> >>>>> Hello,
> >>>>>
> >>>>> Yes, but the examples I see are very basic and the API's are quite
> >>>>> extensive. In short PDFBox can do a lot, but I have no way of finding
> >>>>> something quickly what I am looking for. I guess I have no option
but
> >> to
> >>>> go
> >>>>> through the API's and the basic examples to do what I want. My tasks
> >> are
> >>>> :
> >>>>>
> >>>>> 1) getting the data from the database(I have methods for that),
> format
> >> it
> >>>>> in correct way and put it in PDF:
> >>>>> 2) As the information in database can be small or big, I have to
> adjust
> >>>>> that in PDF.
> >>>>
> >>>> Is that a forms filling application or do you have to output dynamic
> >> text
> >>>> blocks?
> >>>>
> >>> Its a note taking application. And the output is the PDF should have
> all
> >>> the notes as they look on the canvas, and in landscape mode.
> >>
> >> PDFBox is a low level library if you want to create documents from
> scratch
> >> as there is no concept such as text blocks, paragraphs ….
> >>
> >> So also it's a doable job there might be better options.
> >>
> >> Apache fop might be an option using XSL:FO to create the document.
> >>
> >> Another option is to use
> https://github.com/GlenKPeterson/PdfLayoutManager
> >> which is built on top of PDFBox and adds things like tables, line
> breaking,
> >> page breaking and such.
> >>
> >> Some other projects (from github didn't check them) which could be used
> as
> >> a starting point
> >>
> >> https://github.com/eduardohl/Paginated-PDFBox-Table-Sample
> >> https://github.com/dhorions/boxable
> >>
> >
> > Thank you. This helps a lot with the github links, you just saved me
> hours
> > of work. Also, the XSL:FO is discontinued.
>
> AFAIK the work on XSL:FO 2 is discontinued but that doesn't mean that
> XSL:FO as a whole is discontinued. Apache FOP is very active as are
> commercial implementations of the standard.
>
> > Do you believe the tasks I
> > mentioned are achievable with something which is more active, like
> PDFBox.
> > I checked IText, but it's paid.
> >
>
> don't know if paid vs. unpaid is a good measure to decide on a technology
> or a vendor. If paid saves you a lot of time …
>
> From what I understand the task you have at hand is achievable with PDFBox
> (and some additions to get you started quicker - mentioned before), iText,
> fop and others such as a report writer …
>
> If you have a lot of text formatting, tables … something with a higher
> level api will help you getting the job done quicker.
>

Ok. I guess I will go ahead with PDFBox. Thank you for the information.

>
>
> >>
> >>
> >>>
> >>>>
> >>>>> 3) The information in database has to be put on top of certain images
> >> in
> >>>>> the pdf.
> >>>>
> >>>> So the PDF is preexisting or are the images added as part of your
> >>>> application?
> >>>>
> >>> PDF doesn't exist, I have to create it, images I have saved in the
> >> system.
> >>> I have a background image which needs to be loaded to give a shadow.
> >>>
> >>>>
> >>>>>
> >>>>> On Thu, Nov 6, 2014 at 8:43 PM, Tilman Hausherr <
> THausherr@t-online.de
> >>>
> >>>>> wrote:
> >>>>>
> >>>>>> Hi,
> >>>>>>
> >>>>>> There is no "PDFBox in action" book, if that is what you mean.
> >>>>>>
> >>>>>> Most people learn by seeing examples.
> >>>>>>
> >>>>>> If there's a specific PDF element that you would like as example,
> just
> >>>> ask.
> >>>>>>
> >>>>>> However creating PDFs has only very basic support in PDFBox,
i.e.
> you
> >>>> have
> >>>>>> to do everything youself, there's no higher API, e.g. for paragraphs
> >> or
> >>>>>> tables (there's a user who created a class for tables).
> >>>>>>
> >>>>>> A totally different approach would be Apache FOP.
> >>>>>>
> >>>>>> Tilman
> >>>>>>
> >>>>>>
> >>>>>> Am 06.11.2014 um 17:23 schrieb Kernel freak:
> >>>>>>
> >>>>>> Hello,
> >>>>>>>
> >>>>>>> I want to use Apache PDFBox to create some advanced pdf's
in Java.
> I
> >>>>>>> couldn't find any good documentation for PDFBox. Only a
few
> examples
> >>>> and
> >>>>>>> directly the API docs.
> >>>>>>> Does anyone knows any good book or good documentation like
other
> >> apache
> >>>>>>> products have. Kindly let me know. I don't want tutorials,
there
> are
> >>>> many
> >>>>>>> on net and they are very basic, and going through the entire
source
> >>>> code
> >>>>>>> takes a lot of time. Thank you.
> >>>>>>>
> >>>>>>> Regards,
> >>>>>>> Kernel
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>
> >>>>
> >>
> >>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message