Crear un Pdf con un bundle en symfony 2 - SlideShare

Loading...

SlideShare Explore Search You

Upload Login Signup

Search

Submit Search

Home Explore Presentation Courses PowerPoint Courses by LinkedIn Learning Search Successfully reported this slideshow. We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

README.markdown PsPdfBundle This bundle integrates Symfony2 with PHPPdf library. Thanks to this bundle you can easily gen... in dev environment cache should be off. markdown_stylesheet_filepath - filepath of stylesheet for markdown parser markdown... Speaker Deck: Presentations Gist: Code snippets Job board Documentation GitHub Help Developer API GitHub Flavored Markdown... Upcoming SlideShare Loading in …5 × 1 of 4

Crear un Pdf con un bundle en symfony 2 2,547 views Share Like Download ...

Ronald Franz Nina Layme, Ingenieria de Sistema Follow Published on Jan 21, 2014

Tutorial Como crear un PDF desde symfony 2 a partir de un pdf bundle, ... Published in: Technology 0 Comments 0 Likes Statistics Notes

Full Name Comment goes here. 12 hours ago Delete Reply Spam Block Are you sure you want to Yes No Your message goes here

Share your thoughts… Post Be the first to comment Be the first to like this No Downloads Views Total views 2,547 On SlideShare 0 From Embeds 0 Number of Embeds 3 Actions Shares 0 Downloads 14 Comments 0 Likes 0 Embeds 0 No embeds No notes for slide

Crear un Pdf con un bundle en symfony 2 1. 1. Explore GitHub Search Features Blog Sign up for free Sign in Star 41 Fork 8 public psliwa / PdfBundle Code Network Pull Requests 0 Issues 2 Graphs PHP 1. PHP 100% This bundle integrates Symfony2 with PHPPdf library. — Read more http://ohey.pl Clone in Windows ZIP HTTP SSH Git Read-Only http://github.com/psliwa/PdfBundle.git ReadOnly access Tags 0 branch: master Switch branches/tags Filter branches/tags Branches Tags 1.0.x master zf1-in-backend Nothing to show Nothing to show Files Commits Branches 3 71 commits PdfBundle / fix composer.json file latest commit 623579091a psliwa authored 14 days ago Annotation a year ago new @Pdf annotation argument (enableCache), fix DI configuration [psliwa] Controller 7 months agoupdate composer.json, README and examples [psliwa] DependencyInjection a year ago update supported PHPPdf version to 1.1.x branch [psliwa] EventListener a month ago [#28] responses with error code > 299 do not trigger pdf rendering [psliwa] PHPPdf a year ago support for bundle based paths in fonts configuration file and source… [psliwa] Reflection a year ago [#3] fix compatibility to new versions of JMS bundles [psliwa] Resources a year ago support for bundle based paths in fonts configuration file and source… [psliwa] Templating 8 months agofix image location [psliwa] Tests a month ago [#28] responses with error code > 299 do not trigger

pdf rendering [psliwa] Twig a year ago pdf_image Twig function [psliwa] 6 months agoreadme update [psliwa] vendor .travis.yml a year ago travis-ci fix [psliwa] CHANGELOG 5 months agoupdate version of PHPPdf in composer file [psliwa] LICENSE 2 years ago initial commit [psliwa] PsPdfBundle.php 2 years ago fix [psliwa] README.markdown6 months agoreadme update [psliwa] composer.json 14 days ago fix composer.json file [psliwa] 2. 2. README.markdown PsPdfBundle This bundle integrates Symfony2 with PHPPdf library. Thanks to this bundle you can easily generate PDF or image (png, jpg) files. Documentation of PHPPdf you can find on github (README file). Installation 1. If you use composer to resolve dependencies, you can skip 2nd, 3rd and 4th steps. PsPdfBundle requires "minimum-stability" equals to dev. PHPPdf uses zendframework packages, so if you want to use composer, you must add zendframework composer repository to your composer.json file. "eoiois:[ rpstre" { "ye:"opsr, tp" cmoe" "r" "tp/pcae.edrmwr.o/ ul: ht:/akgsznfaeokcm" } , { "ye:"opsr, tp" cmoe" "r" "tp/pcaitog" ul: ht:/akgs.r/ } ] 2. Add this bundle and PHPPdf library to deps file and update vendors: [dBnl] Pfude gtgt/gtu.o/siaPfudegt i=i:/ihbcmplw/dBnl.i tre=bnlsP/dBnl agt/ude/sPfude [HPf PPd] gtgt/gtu.o/siaPPd.i i=i:/ihbcmplw/HPfgt vrinoii/.. eso=rgn11x 3. Download dependencies (for example ZF2) of PHPPdf library. You can skip this step, if your application has had dependency on ZF2 framework and Imagine already. For more details see installation section of PHPPdf documentation. ppvno/HPfvnospp h edrPPd/edr.h 4. Register bundle, PHPPdf, Imagine and ZF libraries in autoloader: /apatla.h /p/uoodpp $odr>eitraepcsary lae-rgseNmsae(ra( 's = _DR_'./edrbnls, P' > _I_./.vno/ude' 'HPf = _DR_'./edrPPd/i' PPd' > _I_./.vno/HPflb, 'mgn'= ary_DR_'./edrPPd/i' _DR_'./edrPPd/i/edrIaielb) Iaie > ra(_I_./.vno/HPflb, _I_./.vno/HPflbvno/mgn/i', 'ed = _DR_'./edrPPd/i/edrZn/irr'/I yuhv ue Z2pcae aray yusol si ti ety Zn' > _I_./.vno/HPflbvno/edlbay,/f o ae sd F akgs led, o hud kp hs nr 'edd'= _DR_'./edrPPd/i/edrZnPflbay, ZnPf > _I_./.vno/HPflbvno/edd/irr' ); ) 5. Register bundle in AppKernel: /apApenlpp /p/pKre.h pbi fnto rgseBnls) ulc ucin eitrude( { rtr ary eun ra( / . / . nwPdBnlsdBnl(, e sPfudePPfude) / . / . ) ; } Configuration All options are optional. #apcni/ofgyl p/ofgcni.m p_d: spf ndsfl:~ oe_ie fnsfl:~ ot_ie cmlxatiue_ie ~ ope_trbtsfl: clr_ie ~ oosfl: ueccei_tlset ~ s_ah_nsyehe: cce ah: tp:~ ye otos ~ pin: mrdw_tlsetflpt:~ akonsyehe_ieah mrdw_ouettmlt_ieah ~ akondcmn_epaeflpt: dcmn_asrtp:~ ouetpre_ye nodes_file - path to file with nodes/tags definitions, internal nodes.xml file from PHPPdf library is used by default fonts_file - path to file with fonts definitions, internal fonts.xml file from PHPPdf library is used by default complex_attributes_file - path to file with complex attributes definitions, internal complex-attributes.xml file from PHPPdf library is used by default colors_file - path to file with default palette of colors, internal colors.xml file from PHPPdf library is used by default cache.type - type of cache, supported are all backend cache from Zend_Cache component (for instance File, Apc, Memcached, Sqlite etc.). File engine is used by default. cache.options - specyfic options for cache engine (for instance "cache_dir" for File engine). cache_dir by default is as same as kernel.cache_dir. use_cache_in_stylesheet - stylesheet maching rules will be cache, if this option is set. In complex stylesheet cache significantly improves performance. Default is true, but 3. 3. in dev environment cache should be off. markdown_stylesheet_filepath - filepath of stylesheet for markdown parser markdown_document_template_filepath - xml document template form output of markdown parser document_parser_type - default parser type: xml or markdown Images in source document If you want to display image, you must provide absolute path to image file via "src" attribute of image tag. Asset Twig function dosn't work, because it converts image path to relative path according to web directory. To make using of images easier, bundle provides Twig function, that converts image logical name to real, absolute path. Example: pf <- pfiae'udeaeiaenm.xeso' -> !d_mg(BnlNm:mg-aeetnin) /yai-ae Bundle based paths in fonts and document xml file If you want to use custom fonts, you should create your own fonts.xml config file (default fonts filepath is PHPPdfResourcesconfigfonts.xml). To make easier defining fonts paths, bundle based paths are supported. Example: <- sm fnsxlfl -> !- oe ot.m ie "%SomeBundle:file.ttf%" will be replaced by "path/to/SomeBundle/Resources/file.ttf" Example / I cnrle / n otolr /.. /. uePdBnlnoainPf s sPfudeAnttod; /.. /. /* * *@d( Pf) * / pbi fnto hlocin$ae ulc ucin elAto(nm) { $omt=$hs>e(rqet)>e(_omt) fra ti-gt'eus'-gt'fra'; rtr $hs>edrsrnf'oeudeSmCnrle:elAto.sti' $omt,ary eun ti-rne(pit(SmBnl:oeotolrhlocin%.wg, fra) ra( 'ae = $ae nm' > nm, ); ) } / i hlocinhm.wg / n elAto.tlti Hlo{ nm }! el { ae } / i hlocinpfti / n elAto.d.wg pf Hlo{ nm }! el { ae } /yai-ae Bundle automatically detects pdf format (via _format) request and create pdf document from response. Pdf annotation has four optional properties: headers - associative array of specyfic headers stylesheet - pdf stylesheet template file in standard Symfony2 notation ("Bundle:Controller:file.format.engine") documentParserType - type of parser: xml or markdown enableCache - pdf output should by cached? True or false, default: false. Hash (md5) from template and stylesheet content is a cache key, only PHPPdf invocation is cached, controller is always called. GitHub About us Blog Contact & support GitHub Enterprise Site status Applications GitHub for Mac GitHub for Windows GitHub for Eclipse GitHub mobile apps Services Gauges: Web analytics 4. 4. Speaker Deck: Presentations Gist: Code snippets Job board Documentation GitHub Help Developer API GitHub Flavored Markdown GitHub Pages More Training Students & teachers The Shop Plans & pricing The Octodex © 2013 GitHub Inc. All rights reserved. Terms of Service Privacy Security Something went wrong with that request. Please try again.

Recommended

Teaching Online: Synchronous Classes Online Course - LinkedIn Learning

Office 365 for Educators Online Course - LinkedIn Learning

Learning Everyday Math Online Course - LinkedIn Learning

Manual Ajax con jquery Ronald Franz Nina Layme

introduccion a Ajax Yair Ambrocio

Zencoding cheatsheet, ayuda Memoria Ronald Franz Nina Layme

Php orientado a objetos, Ronald Nina Ronald Franz Nina Layme

Manual de Introducción a los Css Ronald Franz Nina Layme

Introducción Base de datos mysql Ronald Franz Nina Layme

Introducción a Php basico Ronald Franz Nina Layme English Español Português Français Deutsch About Dev & API Blog Terms Privacy Copyright Support

LinkedIn Corporation © 2018 × Share Clipboard × Email

Enter email addresses Add a message From



Send Email sent successfully.. Facebook Twitter LinkedIn Link Public clipboards featuring this slide

×

No public clipboards found for this slide ×

Save the most important slides with Clipping Clipping is a handy way to collect and organize the most important slides from a presentation. You can keep your great finds in clipboards organized around topics. Start clipping No thanks. Continue to download. Select another clipboard ×

Looks like you’ve clipped this slide to already. Search for a clipboard Create a clipboard

You just clipped your first slide! Clipping is a handy way to collect important slides you want to go back to later. Now customize the name of a clipboard to store your clips. Name* Best of Slides



Description Add a brief description so others know what your Clipboard is about. Visibility Others can see my Clipboard Cancel Save Save this documentTap To Close

Loading...

Crear un Pdf con un bundle en symfony 2 - SlideShare

SlideShare Explore Search You Upload Login Signup Search Submit Search Home Explore Presentation Courses PowerPoint Courses by LinkedIn Learning ...

376KB Sizes 2 Downloads 20 Views

Recommend Documents

Como crear un pdf interactivo en indesign
Skema anabolisme dan katabolisme karbohidrat. Aguinaldo rejuvenesces its correlative extend creepily. unboding leaving M

Debate Como crear un camping - grupos.emagister.com
Sep 17, 2006 - Debate sobre Como crear un camping, dentro del Foro de Camping con los 124 integrantes de este grupo y ac

Convertir un document en word en pdf
Sheffield Yeuk convertir un document en word en pdf his winged feet incarnadining preeminently complicated? Swedenborg a

Lectoescritura Mian Brabur en un solo pdf - Slideshare
Nov 3, 2015 - Pdf donde se recogen todos los cuadernillos de lescoescritura MIAN BRABUR. ... guepardo gaita Lee, REPASA

Como vivir con un neurotico pdf
Feb 8, 2010 - Como vivir con un neurotico pdf. Download Como vivir con un neurotico. If you have any addition advice for

Lectoescritura Mian Brabur en un solo pdf - SlideShare
Nov 3, 2015 - Pdf donde se recogen todos los cuadernillos de lescoescritura MIAN BRABUR. ... www Nombre: Fecha: hilo hip

Firmar con certificado digital un pdf con adobe reader
Saracen and physical jurnal ekonomi kependudukan pdf Siffre mature their tittivates or mediately groping. graphologic it

Un-dinosaurio-en-el
... monthly 0.5 http://www.taringa.net/posts/downloads/6129727/PDF-Creator.html monthly 0.5 http://www.taringa.net/pos

VIVIR EN UN CONDOMINIO
asociación debe determinar el tipo de administración que mejor le convenga por sus necesidades, deseos y capacidades p

Diverticulitis aguda de intestino delgado en un paciente con - SciELO
Consulta por cuadro de tres días de evolución de dolor abdominal en flanco izquierdo y región periumbilical, asociado