The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 18, 2013, 09:50:19 PM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: AJAX page layout?  (Read 687 times)
nutballs
Administrator
Lifer
*****
Offline Offline

Posts: 5627


Back in my day we had 9 planets


View Profile
« on: August 24, 2009, 06:08:31 PM »

Anyone happen to know of an online page layout app?
Probably AJAX. Definitely PHP.

Basically, I want to be able to allow customers to edit text within a brochure, and then spit out the brochure as a PDF.

Any thoughts?
I want to write as little as possible of it...
Logged

I could eat a bowl of Alphabet Soup and shit a better argument than that.
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10009



View Profile
« Reply #1 on: August 24, 2009, 06:29:36 PM »

I don't have a WYSIWYG editor, I just use a stock edit box for my control centers, but I use ezPDF for generating output. It's pretty good, although I don't think the developer's worked on it since '06.

I wrapped it in a class for reporting that I use all the time. The original code can be found here: http://www.ros.co.nz/pdf/ but I can get you a lot more up to date than that if you'd like. It's pretty strong, although somewhat heavy as a pure PHP class. Creating classes on top of it for things like letter head, specialized output and reports was a little tricky at first but soon enough I had it pretty tightened down.

Interestingly, I have a need to give my underwear partners something similar... it's been on my backburner because I don't want to do it LOL. Might be something there for us to do.
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
nutballs
Administrator
Lifer
*****
Offline Offline

Posts: 5627


Back in my day we had 9 planets


View Profile
« Reply #2 on: August 24, 2009, 08:22:11 PM »

yea the PDF output is not a problem, at least in theory.

I am thinking that a slightly different approach might work in this case.

Have the user fill out a form.
Show a JPG preview of the final result.
Allow the user to update their text.

this is intended to be fairly structured. Think of a brochure template that you can just drop your copy into, and then it produces a finished brochure for you. Its actually a very minimal part of what we are trying to do, but yet it is the most intensive part technology wise.

I think at least to get started, that might be the way to go? have a base JPG for each item, without any copy in it, and using GD or whatever to overlay the text on it. Then when all done, the PDF is generated behind the scenes, since the user never actually gets the PDF anyway.
Logged

I could eat a bowl of Alphabet Soup and shit a better argument than that.
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!