Editing a PDF + need ability to create new bullets, bold, italic words

Basically we have a brochure that users will be able to edit online.

What is the best way of doing this, just point me in the right direction.

Specs:

" Page loads with a JPG of what the standard brochure looks like.
" Form for editing certain sections of the brochure.
" 2 of the sections are open to either a paragraph or a bulleted list
" Customer needs to be able to select certain words for underlining, italicizing or bolding
" User cannot edit Font, family, color or size.
tjstalcupAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

almilyoCommented:
Do you mean you are going to take their input, use it to product some type of source document (maybe HTML?) then outputting that as a PDF?

I think you'll run into all sorts of problems if you are talking about programmatically changing an existing PDF.
0
tjstalcupAuthor Commented:
Well I already use FPDF to dynamically create PDFs on this client's site.  I just want to take their input and put into these 2 areas on the brochure, which would be blank on the PDF.  Just layered over top.

I've tried using TinyMCE, but that puts in font tags, etc.  Alot of Search & Replace.  I just need to know if that's he direction that I should be going in order for them to input bullets, bold words, underlined words and italicized words.
0
dolcezzzaCommented:
I just did something like this with fpdf...
You make the form using POST as a normal form, send it to a submitform.php page (this would be the page that the fpdf code is on). Befor the fpdf code declare the variables
Then in the fpdf cell use the variables

Here is an example of part of mine:

form:
<input type="text" size="15" name="honorarium" id="honorarium" value="<? echo $honorarium ?>">
 
in submitform.php:
 
$honorarium = mysql_real_escape_string($_POST['honorarium']);
 
 
more code
in fpdf part:
$pdf->MultiCell(0,5, 'This is to confirm that we will pay Connecting Authors the following honorarium for the author\'s presentation: $' . $honorarium ,0,1);

Open in new window

0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

tjstalcupAuthor Commented:
Yeah, i got that much, but what about a textarea that allows inputting of Bullets, Bold, Italic, Underline?
0
dolcezzzaCommented:
you can put ifs within the pdf too, ie:
(please check syntax, I didn't )

if(underline checkbox is checked) {
$pdf->Cell(0,5 '<b>$' . $honorarium .</b> ,0,1);
}
else
{$pdf->Cell(0,5 $honorarium ,0,1); ,0,1);
}

Open in new window

0
tjstalcupAuthor Commented:
That sounds workable, but not if they want to underline a certain word, I need to find out what word they have selected in the textarea.

Is there a way to do this?  If not I guess I just work w/ TinyMCE or similiar WSYWIG editor.
0
dolcezzzaCommented:
sorry, wrote underline, meant bold.
you can put any html in the pdf tag, so that depends on how extensive you want to get you can write a php script saying if a word is underlined, put the <u> around it , but it may not be worth all the work depending on how many words there are.
0
tjstalcupAuthor Commented:
Hundreds of words, that's my fear, they want to insert bullets wherever they want, or bold a word wherever they want, etc.

Do you think TinyMCE is the way to go?
0
dolcezzzaCommented:
if it's that extensive, then yes
0
tjstalcupAuthor Commented:
Awesome, well i will keep the question open for 24 hours to see if there are any other suggestions.
0
dolcezzzaCommented:
You're killin me! I need to get 6,000 point before the month end(tonight)
I don't blame you though... someone else could come up with something better, you never know!
0
tjstalcupAuthor Commented:
Okay, i won't kill you, I will wait until 11:50pm tonight, is it based off EST?
0
dolcezzzaCommented:
that's very nice of you... I can't find that info, I'll try harder to look it up in a bit
0
tjstalcupAuthor Commented:
Well your comments are in EST, so I would assume so.
0
hernst42Commented:
To create pdfs from HTML-formating I suggest to try http://tcpdf.sf.net
To let the user enter the HTML via Webbrowser use the already mentioned TinyMCE or try http://www.fckeditor.net/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tjstalcupAuthor Commented:
Well i may stick to FPDF & FPDI as they allow me to import a PDF into the background, but FCK editor has a lot simpler HTML output, which will work perfectly for what I need.  Thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.