How to convert a web page into PDF format using renderAs attribute

<apex:page standardController="Contact" renderAs="pdf" >
<apex:page standardController="Contact" ><apex:form ><h1 style="font-size:25px;">Converting to pdf format</h1><body><table style="width:100%"><tbody style="diasplay:table-row-group;vertical-align:middle;"><tr style="display:table-row;"><th style="font-size:1 em;text-align:left;padding-top:6px;padding-bottom:5px;padding:2px 6px 3px 7px;line-height:50px;"> Company name </th><th> Contact number </th></tr><tr><th> Micropyramid inf pvt ltd </th><th> 04065996999 </th></tr></tbody></table>
<apex:page standardController="Contact" renderAs="pdf" >

The article was originally published at MicroPyramid blog

--

--

--

Python, Django, Android and IOS, reactjs, react-native, AWS, Salesforce consulting & development company

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

All you need to know about React.

Baby steps to Mobile Development with Javascript

ES6: Discovering Sets, WeakSets, Maps and WeakMaps

Understanding Recursion

5-Minute-Code: How to use ‘connect-flash’ in your Express App.

Screw you, RXJS, I’m going home…

Javascript Equality

Connecting MongoDB to Express

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
MicroPyramid

MicroPyramid

Python, Django, Android and IOS, reactjs, react-native, AWS, Salesforce consulting & development company

More from Medium

Node.js + PostgreSQL CRUD Automation API

Basic Auth only for a specific domain

SECURE MongoDB UBUNTU SERVER!*

Fundamental Docker theories 🐳 🔥