![]() |
lefty 10/6/2019 |
I create output PDFs using a PDF template (empty PDF form) and setasign FPDF/ FPDI. Using setasign I can position field values accurately along with images (signatures). This works very well. I would like to be able to make the add/ edit pages resemble the PDF form/template, but I don't know if its possible or where to start making the input pages (add/ edit) look like the output PDF. Has anyone created custom Add/ Edit pages that resemble real PDF forms ... is it possible ? Regards Steve
|
S
|
Steve Seymour author 10/7/2019 |
... I put the setasign folder in the Source folder of the project.. andthe pdf template folder in the source too.. |
![]() |
lefty 10/7/2019 |
... I put the setasign folder in the Source folder of the project.. andthe pdf template folder in the source too.. then at the top of my custom PHP script (called from a custom button (which passes a table name and an id)) <?php //PHPR DB include "include/dbcommon.php"; require_once 'setasign/fpdf/fpdf.php'; require_once 'setasign/fpdi/src/autoload.php'; use \setasign\Fpdi\Fpdi; .... Then actually using it to create a pdf... // initiate FPDI $pdf = new FPDI(); //$pdf->setSourceFile("z_wstemplate1.pdf"); // jobsheet template $pdf->setSourceFile("cert_templates/jobsheet.pdf"); // jobsheet template $tplidx = $pdf->importPage(1); $pdf->addPage(); $pdf->useTemplate($tplidx, 0, 0, 210, 297); // now write some text over the imported page $pdf->SetFont('Helvetica', '', 10); $pdf->SetFontSize(10); $pdf->SetTextColor(0, 0, 0); $pdf->SetXY(22,26); $pdf->Write(0,$data["job_no"]); $pdf->SetXY(102,26); $pdf->Write(0,$data["po_no"]); $pdf->SetXY(34,31.5); $pdf->Write(0,$data["cust_name"]); ....... This works very well and I've also used a blank PDF template in another project and built the PDF from table fields and (the PDF needed to be dynamic... as in sometimes longer / 2 pages. I have thought of an idea of how to create much better input pages... all we need is the ability to place the edit controls in a responsive table. It works in an old Laravel project, but I don't know how to get a responsive table onto a PHPRunner add/edit page... That would solve multiple issues with Add/Edit layouts.
|
S
|
Steve Seymour author 10/7/2019 |
No, I dabbled with version 9 trial but its all quite new to me 10.2 was my first real effort. |
![]() |
Admin 10/7/2019 |
This all is really puzzling. What are "real PDF forms"? What is "responsive table"? |
S
|
Steve Seymour author 10/7/2019 |
This all is really puzzling. What are "real PDF forms"? What is "responsive table"? In Page Designer you can modify your input forms any way you want. "much better input pages" - another puzzle, what is that?
|
![]() |
Admin 10/8/2019 |
You are describing a beautiful sunset to a blind person. I'm the blind person here and I have no idea what "real PDF forms" do you mean or what " maintain a 'table like structure' during responsive collapse" means. Bootstrap takes care of resizing forms on different screens and it is impossible to understand what you talking about. You talking about PDF forms, input pages, tables and grids at the same time. |
S
|
Steve Seymour author 10/8/2019 |
You are describing a beautiful sunset to a blind person. I'm the blind person here and I have no idea what "real PDF forms" do you mean or what " maintain a 'table like structure' during responsive collapse" means. Bootstrap takes care of resizing forms on different screens and it is impossible to understand what you talking about. You talking about PDF forms, input pages, tables and grids at the same time.
|
![]() |
fhumanes 10/8/2019 |
Hello:
|
S
|
Steve Seymour author 10/8/2019 |
Hello: I will tell my experience and what I am working on. My experience: In a Public Administration (many forms and constant renewal of them) we are working with PDF forms (data entry) and the delivery of the form (output / copy of what they have provided) everything is working with PDF. Problem: Validations and very poor dynamism. It is not possible to control all the values that are delivered. Advantage: The same entry form can be printed and filled out with a pen. The "classic" user is comfortable with the solution. I am working: As it has to be a very productive system (in a very short time the new form has to be in production) the code of the forms has to be reused, so the solution is:
|
![]() |
Admin 10/9/2019 |
Thank you for providing a PDF file, it makes more sense now. I've tried to quickly replicate this form in Page Designer but ran out of fields. Anyway here is the sample Add page form that resembles PDF file layout. |
S
|
Steve Seymour author 10/9/2019 |
Thank you for providing a PDF file, it makes more sense now. I've tried to quickly replicate this form in Page Designer but ran out of fields. Anyway here is the sample Add page form that resembles PDF file layout. Of course you need to make fields like ShipVia, OrderDate, ShipPostalCode and OrderID text areas, apply correct alignment, set borders etc. Does it make sense?
|
S
|
Steve Seymour author 10/10/2019 |
Here is a crude example of what I was trying to explain... a table that retains its integrity when the view port size changes. |
M
|
MikeT 10/12/2019 |
Did you look at modifying the included bootsrap themes? I'm not 100% up to date how tghis is handled in 10.3 since I did my last more complicated project in 9.8, but also with the included bootstrap themes, and somewhat heavily customizing them. |
S
|
Steve Seymour author 10/12/2019 |
Did you look at modifying the included bootsrap themes? I'm not 100% up to date how tghis is handled in 10.3 since I did my last more complicated project in 9.8, but also with the included bootstrap themes, and somewhat heavily customizing them. The themes are (were?) based on bootswatch (google for it). You can modify these, although it's a lot of work depending on what you're doing. I'm pretty sure you could mess around with breakpoints for example. Just an idea.
|
M
|
MikeT 10/12/2019 |
OK, I was just thinking you'd like to modify how phpr handles tables via the included theme(s). I did not include external pages in my project back then, just modifying the themes of phpr itself (actually creating a new one by copying an included one and then modifying it). |
![]() |
Admin 10/12/2019 |
I'm still yet to understand what is special about this table. Maybe you can elaborate a bit and provide the following screenshots
|
S
|
Steve Seymour author 10/13/2019 |
Thank you for your idea... |
S
|
Steve Seymour author 10/13/2019 |
I'm still yet to understand what is special about this table. Maybe you can elaborate a bit and provide the following screenshots
|
![]() |
Admin 10/13/2019 |
I see what you saying. This can be done as well, with the help of custom CSS. |
S
|
Steve Seymour author 10/13/2019 |
I see what you saying. This can be done as well, with the help of custom CSS.
|