Article en PDF

More
8 years 2 months ago #63962 by micker
Replied by micker on topic Article en PDF
maybe we can study it to add an global option and native support without library

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
8 years 2 months ago #63963 by micker
Replied by micker on topic Article en PDF

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
8 years 2 months ago #63992 by ggppdk
Replied by ggppdk on topic Article en PDF
Hello

also you may find useful to use PDF text indexing
(allow searching text that appears inside PDF files, via FLEXIcontent frontend search filtering forms of category and search view)

- it is new you may test it, but it requires that you manually install (yourself) the PDF parser into your site

download from here and install into a test site via Joomla installer:
github.com/FLEXIcontent/flexicontent-cck/tree/3.0.x-stable


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
5 years 7 months ago - 5 years 7 months ago #76194 by caw
Replied by caw on topic Article en PDF
this works if you change some code!
Code:
<?php //activer le champs field_resume pour pouvoir l'afficher de manière personalisée $myfield_html = FlexicontentFields::getFieldDisplay($item, 'text'); ?> <?php // Include the main TCPDF library (search for installation path). require_once JPATH_LIBRARIES . '/tcpdf/tcpdf.php'; // create new PDF document $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); // remove default header $pdf->setPrintHeader(false); // set footer fonts $pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); // set default monospaced font $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); // set margins $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); $pdf->SetFooterMargin(PDF_MARGIN_FOOTER); // set auto page breaks $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); // set image scale factor $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set font $pdf->SetFont('dejavusans', '', 10); // add a page $pdf->AddPage(); // create some HTML content $html = '<h1>'.$item->title.'</h1>'.$this->fields['text']->display; //ci-dessus j'appelle l'affichage de mon champs perso field_resume // output the HTML content $pdf->writeHTML($html, true, false, true, false, ''); // reset pointer to the last page $pdf->lastPage(); //Close and output PDF document, j'enregistre le Pdf dans le répertoire /images/ $pdf->Output($_SERVER['DOCUMENT_ROOT'] . '/images/' . $this->item->alias . '.pdf', 'F'); //attention à bien préciser le chemin, personnalisez 'SOUS_REPERTOIRE/images/' //si votre site est installé dans un sous-répertoire de votre dossier racine ça donnera donc 'SOUS_REPERTOIRE/images/' //mon chemin complet était par exemple /var/www/default/SOUS_REPERTOIRE/images // Voila on va maintenant générer un lien vers le fichier pdf crée , le nom du fichier sera l'alias de la fiche echo '<a target="_BLANK" href="images/' . $this->item->alias . '.pdf"><strong>Imprimez le PDF</strong></a>'; ?>
Last edit: 5 years 7 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
5 years 7 months ago #76279 by caw
Replied by caw on topic Article en PDF
you can put i into the documentation!

Please Log in or Create an account to join the conversation.

More
5 years 7 months ago #76280 by micker
Replied by micker on topic Article en PDF
hello you can help use to post it
flexicontent.org/submit-a-tutorial.html?maincat=42

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.418 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline