Kuba Zygmunt

Ranch Hand
+ Follow
since Jul 17, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kuba Zygmunt

Hello,

does new library supports some kind of optimization, which offers similar functionality to PDF reduce file size function in Adobe Acrobat Pro ?

edit: I use PDFSmartCopy to merge multiple PDFs, however I wonder if there is something which can compress the output file.


Many thanks
Jakub
Fantastic ! Thanks Mark
Hi Bruno

I know that merging pdfs is possible using iText, for example using PdfCopy class. However I got 100ish pdfs based on the one template ( they got the same graphics, just different wording )

Is it possible, during merging, to copy images once and then use references to those images later on ?

ah sorry should be "any corner"

for example I would like to place Textfield 10 mm left from the left margin of the page or xx mm from other element, something like positioning in CSS ?
Hi Bruno

First of all I would like to thank you for a great book and library ! They do a great job!

I have couple of question regarding iText.

1. iText Book. Do you have a chapter where you explain how to create a PDF Portfolio (portable collection) ?
I had problem in the past printing big pdfs ( like 600 pages/ 300 MB), printer couldn't handle that resulting blank pages in the middle of the print. So I use PDF portfolio to print PDF forms;

2. You have a chapter about using HTML in PDF, does your library handle that by itself or xhtmlrenderer is needed ?

3. Is it possible to position pdf form elements by defining tany corner ( like (x,y) in mm ) ?


Cheers
Kuba Zygmunt

It's hard to tell, so if you could pack your grails-app, put somewhere, and provide a link ( through forum or PM ), then I could check it for you.

Jakub

--edit
I reviewed your files and couple of things you could improve.

1. Put 3 classes created by Acegi plugin into package 'gameaddict' or 'security' or even 'gameaddict.security' ( yours grail app ) so you wont have problems with finding them later. You can use a command like


2. to get info in controller about current user, add authenticateSerive and then use userDomain() method. eg.


I hope it helps

Jakub
10 years ago
hi it looks like your structure is a bit messed up.

try to sort out your folders like :


if you have a domain class put it in grails-app/domain/<package> like Review and Person .
If you want to have some classes which are not domain classes put them in src/groovy/<package>/

then you can import them in grails using import <package-name>.<className>

Regards
10 years ago
Hi

if you use grails version 1.3.1 or newer then your domain classes will be in package named by your application. It is always better to use packages
10 years ago
check packages and if controller and domain class are in different packages use import.
10 years ago
If you match person witch acegi user by username, then you can find person using GORM


BTW you can get information from acegi anytime so there is no need to pass user information, just find a proper person before you save a review
10 years ago
I will try to make an example:


and in view



in this case you save the bandwidth, you send only small int instead of the serialized object.
10 years ago
Hi Karol,

What about using hidden field for person id and then in submit action load the proper user object which you can use later in your review.

If you want to send the object through the form you will have to serialize and deserialize after.However this approach is not so secure, because user can modify the object before submission.


Jakub
10 years ago
Hi,

I think you might read your error message wrongly.

The actual error is : The column name borrowedby was not found in this ResultSet.
Great,

Is SpringSource involved in Griffon development ? ( they got Grails )

Kuba
11 years ago