[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-346315-105":59,"doc-detail-346315-en":131},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","convert-tables-to-pdf-or-png","Convert Tables to PDF or PNG","","latexpdf provides an R toolkit for converting table-like objects and other content into stand-alone PDF or PNG outputs using LaTeX. It offers low-level functions that generate LaTeX commands and environments and a higher-level interface for producing LaTeX table/tabular structures from R data. Generated LaTeX can be embedded into literate programming workflows such as Sweave or Rmarkdown, or auto-converted into PDF via pdflatex. PNG support is experimental and uses Ghostscript-based conversion.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/convert-tables-to-pdf-or-png/346315/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/convert-tables-to-pdf-or-png/346315.png","ImageObject",300,407,{"name":92,"@type":93},"Cipher","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-10-26","2026-09-22",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",14,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What does latexpdf convert in R?","Question",{"text":113,"@type":114},"It converts table-like objects and arbitrary content into stand-alone PDF or PNG. It can generate LaTeX code from R structures and then render it as a document or image.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"How are PDF outputs generated?",{"text":118,"@type":114},"PDF generation relies on a system call to pdflatex. Functions like tex2pdf() and viewtex() convert tex code into PDF documents, typically through as.pdf.document().",{"name":120,"@type":111,"acceptedAnswer":121},"Is PNG support stable and what does it depend on?",{"text":122,"@type":114},"PNG support is experimental. It relies on local Ghostscript installation for converting PDF to PNG, e.g., via ghostconvert.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},346315,1790462112,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":140,"language":141,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":67,"update_tm":145,"read_time":146},687208528416,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","Package ‘latexpdf’  \nMay 8, 2026  \nType Package  \nTitle Convert Tables to PDF or PNG Version 0.1.8  \nAuthor Tim Bergsma  \nMaintainer Tim Bergsma \u003C[bergsmat@gmail.com](bergsmat@gmail.com)>  \nDescription Converts table-like objects to stand-alone PDF or PNG.  \nCan be used to embed tables and arbitrary content in PDF or Word  \ndocuments. Provides a low-level R interface for creating 'LaTeX'  \ncode, e.g. command() and a high-level interface for creating PDF  \ndocuments, [e.g. as.pdf.data.frame](e.g. as.pdf.data.frame)(). Extensive customization is  \navailable via mid-level functions, [e.g. as.tabular](e.g. as.tabular)(). See also  \n'package?latexpdf'. Support for PNG is experimental; see  \n'[as.png.data.frame](as.png.data.frame)'. Adapted from 'metrumrg'  \n\u003C[https://r-forge. r-project.org/R/?group_id=1215](https://r-forge. r-project.org/R/?group_id=1215)> .  \nRequires a compatible installation of 'pdflatex',  \ne.g. \u003C[https://miktex.org/](https://miktex.org/)>.  \nLicense GPL-3 Encoding UTF-8 RoxygenNote 7.2.3 NeedsCompilation no Repository CRAN  \nDate/Publication 2023-12-19 18:30:02 UTC  \nContents  \nlatexpdf-package ...................................... 2  \nas.document ......................................... 3  \nas.ltable ........................................... 5  \nas.pdf ............................................ 7  \n[as.pdf.data.frame ......................................](as.pdf.data.frame ...................................... 9)[ 9](as.pdf.data.frame ...................................... 9)  \n[as.png ............................................](as.png ............................................ 12)[ 12](as.png ............................................ 12)  \n[as.png.data.frame ......................................](as.png.data.frame ...................................... 13)[ 13](as.png.data.frame ...................................... 13)  \n2 latexpdf-package  \nas.tabular .......................................... 14  \nbreaks ............................................ 17  \ncommand .......................................... 17  \nghostconvert ......................................... 18  \nmakePreamble ........................................ 19  \nreserve ............................................ 21  \nreserve.character ...................................... 21  \n[reserve.data.frame ......................................](reserve.data.frame ...................................... 22)[ 22](reserve.data.frame ...................................... 22)  \n[reserve.default ........................................](reserve.default ........................................ 23)[ 23](reserve.default ........................................ 23)  \n[reserve.factor ........................................](reserve.factor ........................................ 23)[ 23](reserve.factor ........................................ 23)  \n[reserve.list ..........................................](reserve.list .......................................... 24)[ 24](reserve.list .......................................... 24)  \n[tex2pdf ...........................................](tex2pdf ........................................... 24)[ 24](tex2pdf ........................................... 24)  \n[tex2png ...........................................](tex2png ........................................... 25)[ 25](tex2png ........................................... 25)  \n[viewtex ...........................................](viewtex ........................................... 26)[ 26](viewtex ........................................... 26)  \n[wrap .............................................](wrap ............................................. 27)[ 27](wrap ............................................. 27)  \nIndex 28  \n\n| latexpdf-package | Create LaTeX Code and PDF Documents. |\n| --- | --- |\n\nDescription  \nlatexpdf helps you create pdf documents in R using LaTeX techniques; this is especially useful  \nfor making stand-alone PDF images of data.","cbCaivMVjAdVLjnd","https://ap.wps.com/l/cbCaivMVjAdVLjnd","pdf",143095,28,"English","# latexpdf-package\n## as.document\n## as.ltable\n## as.pdf\n## as.pdf.data.frame\n## as.png\n## as.png.data.frame\n## as.tabular\n## breaks\n## command\n## ghostconvert\n## makePreamble\n## reserve\n## tex2pdf\n## tex2png\n## viewtex\n## wrap\n# Index","[{\"question\":\"What does latexpdf convert in R?\",\"answer\":\"It converts table-like objects and arbitrary content into stand-alone PDF or PNG. It can generate LaTeX code from R structures and then render it as a document or image.\"},{\"question\":\"How are PDF outputs generated?\",\"answer\":\"PDF generation relies on a system call to pdflatex. Functions like tex2pdf() and viewtex() convert tex code into PDF documents, typically through as.pdf.document().\"},{\"question\":\"Is PNG support stable and what does it depend on?\",\"answer\":\"PNG support is experimental. It relies on local Ghostscript installation for converting PDF to PNG, e.g., via ghostconvert.\"}]","Convert Tables to PDF or PNG | PDF",1790060892,71]