« first day (4815 days earlier)      last day (348 days later) » 

00:00
"Never face facts; if you do, you'll never get up in the morning." -- Marlo Thomas (source)
 
3 hours later…
02:56
hey.. can someone let me know what this room is for?
 
5 hours later…
07:46
@vinter for chatting
but lately, very few people are online
also, most people are from EU so during the daytime in EU timezones will be the most active
 
4 hours later…
dhS
dhS
11:23
Hi
Anyone worked on itextpdf ??
11:59
I worked with other pdf stuff, but we avoided itextpdf due to licensing
12:26
Hi, I need help with AoC 7. I'm really stuck. Checked all examples I found and all passed
@Pochmurnik Hi really stuck, I'm Oak!
o/ O_o
 
1 hour later…
dhS
dhS
13:40
@Wietlol thanks for reply i have to migrate the code due to licensing ... which pdf library you use instead of itextpdf ?
@Pochmurnik you have more information than... "stuck"?
@dhS we use both openhtmltopdf-pdfbox and flying-saucer-pdf-openpdf
dhS
dhS
Thanks i am trying with PDFBox
in general, the idea is to take html and generate a pdf from it
generating html is a commonn task, solved in many ways, so that is easy to do
dhS
dhS
can you guide me in this
i have shared a question
stuck at a point
each library to convert it to pdf will have its own ways of doing features such as watermarks, page sizing/margin, page headers/footers, page numbers, etc
but they usually have most features required
dhS
dhS
13:43
0
Q: ItextPDF migration to pdfbox

dhSI have the following code which i am migrating from itextpdf to pdfbox.. @RequestMapping(value = "/displaypdf.action", method = RequestMethod.GET) public void displaypdf(HttpServletRequest p_objRequest, HttpServletResponse p_objResponse, @RequestParam("filename"...

The PDFBox and iText architectures differ substantially. Thus, there usually is no line-by-line code conversion but you have to distill from the original code what exactly it does, and then write a converted routine that does the same using the other library. — mkl 4 hours ago
this is exactly what you need
itextpdf is using a different approach, skipping the html part
you would first have to take a look what the itextpdf would have generated, re-create the same in html, then feed that into the html-to-pdf converter
dhS
dhS
in itextpdf we use pdfwriter and pdfreader
for reading, you would just stream the output to the http response thingy
dhS
dhS
so need to convert l_objServletOutputStream is to do with html conversion
14:03
not sure
dhS
dhS
14:18
Thanks @Wietlol ... i get the direction working on it ....
 
5 hours later…
19:11
Often, it seems these folks toss frameworks and libraries around like they're going out of fashion. It's always iText this, PDFBox that, parse this, generate that. Keeps them busy, I guess. I've seen plenty of developers confused about iText and PDFBox, trying to convert between the two as if there's some magical bridge that will transpose one API's methods to the other. There isn't.

Sure, both handle PDFs, but they've got different designs, different capabilities. iText with its high-level functionality for creating PDFs from scratch, and PDFBox with its lower-level approach, better for m
 
1 hour later…
20:32
@Wietlol I can deliver more in in January, I have my solution on other PC. However, I'm not sure what information I should deliver. My code is complicated.
It passed this input:
https://www.reddit.com/r/adventofcode/comments/18cr4xr/2023_day_7_better_example_input_not_a_spoiler/
 
3 hours later…
23:47

« first day (4815 days earlier)      last day (348 days later) »