PDF code examples??

Greetings Scriptcase users :slight_smile:

Was wondering if anybody has any PDF code examples they could share…

Reason being is that I am trying to modify the PDF code provided, example:


/*------------------ Page 1 -----------------*/
            sc_pdf_print($cell_club_clubName);
            sc_pdf_print($cell_club_clubAddress);
            sc_pdf_print($cell_club_clubCity);
            sc_pdf_print($cell_club_clubState);
            sc_pdf_print($cell_club_clubZip);
            sc_pdf_print($cell_club_clubCountry);
            sc_pdf_print($cell_club_clubManager);
            sc_pdf_print($cell_club_clubTell);
            sc_pdf_print($cell_club_clubMobile);
            sc_pdf_print($cell_club_clubEmail);
            sc_pdf_print($cell_club_clubURL);
            sc_pdf_print_img($cell_club_clubLogo, 0, 0);
            sc_pdf_print($cell_mbr_mbrFname);
            sc_pdf_print($cell_mbr_mbrLname);
            sc_pdf_print($cell_mbr_mbrType);
            sc_pdf_print($cell_mbr_mbrDatePaid);
            sc_pdf_print($cell_mbr_mbrDateValid);
            sc_pdf_print($cell_mbr_mbrPaidAmount);
            sc_pdf_print_mult($cell_club_clubTerms, 4.2333333333333);
          /*-------------------------------------------*/


Above is my default code from the inserted tables/data, what I am wanting to do is change this line:
sc_pdf_print_mult($cell_club_clubTerms, 4.2333333333333);

ie. Modify the font size and text color of only this one line, well multiple lines as it inserts the terms and conditions into the receipt.

I have tried to copy/use some code from fpdf but scriptcase just throws errors at me… so am looking for some pointers on how to achieve something so basic… or is it??

And before somebody says use a blank page and code it by hand, please dont… :slight_smile:

So if you have any examples you could share with us folks or just myself I would be very appreciative, thanks in advance!

in fact would u believe I just found a little button next to the interface lines that allows modification of the font, color and what not :slight_smile:

Wish this info was in the manuals!!! would of saved me some headache!

any ideas how to make the inserted content 100% width? the width field doesn’t seem to do anything…

Basically the terms are only taking up 35% of the page instead of full width???

Image example is attached, as you see the terms below should be 100% or around 90% of the page width yet its not…
I have changed the width using the edit button I found tried a % value which throws an error and have tried static values upto 1800 with no change to the content width…
Could I possibly change this in the code and if so how?

testPDF.jpg

[QUOTE=jamieO;15264]any ideas how to make the inserted content 100% width? the width field doesn’t seem to do anything…

Basically the terms are only taking up 35% of the page instead of full width???[/QUOTE]

If I remember correctly you have to set the width in the field in the PDF application, not in the layout interface. The width in the layout interface seems to do nothing, only the positions work.