QuickExpungeio / Main

Main Expunge site
0 stars 0 forks source link

Access to Forms (Add, Send, Delete) #9

Open QuickExpungeio opened 1 year ago

QuickExpungeio commented 1 year ago

UX Designs https://www.loom.com/share/056e2afb0740423aa878b2550426a370?sid=a096183e-8d32-43ab-b39c-e00073a99912

Edit Forms: https://xd.adobe.com/view/e67b6618-25d8-40cb-a8ab-c540647e75f5-b328/

Forms area: https://xd.adobe.com/view/863c83a6-ab06-4595-b60a-968b5e08a19a-d36f/

User story https://docs.google.com/document/d/1hT-BvQxxO94QcdFDt_OXjmUEhOyq-7_GqvSwsQb92WU/edit

leadnerds commented 11 months ago

Questions about this task: https://www.loom.com/share/40da31a08a07485caf6c701e45b0a177?sid=52c2c4ce-6adb-4213-9ba9-44fd7a9ed286

Form Flow: https://xd.adobe.com/view/863c83a6-ab06-4595-b60a-968b5e08a19a-d36f/

Trying to figure out how you would like the "Send" integrated, or how Admin would select who to send to.

With this flow I am thinking you have the Forms "template" section where you can upload different fillable forms. Then Admin would go to the Application and click "Add Form" similar to "Add Document"

Question:

QuickExpungeio commented 11 months ago

@leadnerds When user chooses the label a editable form will be presented. <--- Meaning will be a form that has certain filelds editable (Simular to good docs)

User will have the ability to edit the form, send or cancel <---- Also please add the ability to send a form

leadnerds commented 11 months ago

https://www.loom.com/share/056e2afb0740423aa878b2550426a370?sid=a096183e-8d32-43ab-b39c-e00073a99912 Edit Forms: https://xd.adobe.com/view/e67b6618-25d8-40cb-a8ab-c540647e75f5-b328/ Forms area: https://xd.adobe.com/view/863c83a6-ab06-4595-b60a-968b5e08a19a-d36f/

QuickExpungeio commented 11 months ago

o extract words from a PDF using PHP and CodeIgniter, you can use the fpdf2 library. This library provides functions to parse and extract text from PDF files. Here's a step-by-step guide on how to achieve this:

Step 1: Install the fpdf2 library To install the fpdf2 library, you can use Composer. In your CodeIgniter project's root directory, run the following command:

composer require setasign/fpdf2 Step 2: Create a helper function Next, create a helper function in the application/helpers directory. If the helpers directory does not exist, create one.

File: application/helpers/pdf_helper.php

<?php defined('BASEPATH') or exit('No direct script access allowed');

require_once APPPATH . 'vendor/autoload.php'; // Load the Composer autoload file

use setasign\Fpdi\Fpdi;

function extract_words_from_pdf($pdfPath) { $pdf = new Fpdi(); $pageCount = $pdf->setSourceFile($pdfPath);

$output = '';

for ($i = 1; $i <= $pageCount; $i++) {
    $tplIdx = $pdf->importPage($i);
    $text = $pdf->getText($tplIdx);
    $output .= $text;
}

return $output;

} Step 3: Load the helper and use the function In your controller or wherever you want to extract words from a PDF, load the helper and call the extract_words_from_pdf() function.

<?php defined('BASEPATH') or exit('No direct script access allowed');

class PdfController extends CI_Controller { public function construct() { parent::construct(); $this->load->helper('pdf_helper'); }

public function extract_words()
{
    $pdfPath = 'path/to/your/pdf/file.pdf';
    $words = extract_words_from_pdf($pdfPath);

    // Do something with $words, like displaying or processing it.
    // For example, you can echo it to display on the page.
    echo $words;
}

} Replace 'path/to/your/pdf/file.pdf' in the controller with the actual path to the PDF file you want to extract words from.

Remember to adjust the code accordingly if you have a different directory structure or file paths.

With this setup, when you access the extract_words() method, it will read the PDF file and extract the words from it, which can be used for further processing or displaying on the page.