Questions tagged [getcontentaspdf]

The tag has no usage guidance.

11 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
291 views

PageReference for quote/quoteTemplateDataViewer as PDF is blank

I'm having trouble getting a PDF when using a PageReference to the quoteTemplateDataViewer. This class is creating a QuoteDocument on the Quote record, but the contents of the document are blank. ...
1
vote
0answers
130 views

Style codes appear on using getContentasPDF

I am trying to insert a pdf on click of a button using the getContentasPDF method. The page which has to be rendered is the page I'm redirecting to. I'm pasting the partial code - PageReference ...
1
vote
0answers
290 views

PDF generation failed. Check the page markup is valid.- Occurred when using getContentasPDF

I have a VF page, where I am not using renderas "PDF". In the single email messaging method of Controller, I am using the Attachment as pdf of the VF page. I used getContent() function which ...
1
vote
0answers
78 views

PDF isn't rendered using apex class on community site

I have a community site with some partner users on it, and there's a specific record that I want to make available to render as PDF and be saved as attachment on the same record. Rendering the PDF ...
1
vote
1answer
89 views

getContentAsPDF() SOQL has no rows

I have a problem. I need to get pdf and attach it to object. I create object (and for test I execute query - it's ok), get ID and put it to page as parametr: PageReference pdfPage = Page....
1
vote
1answer
216 views

How to render page as PDF in a seperate subtab

I'm looking for a way to open a new subtab in the service console that renders an existing form as a PDF prior to saving the form and without storing the PDF in Salesforce. I managed to work out how ...
0
votes
1answer
61 views

Generated Word document from VF Page and store it in salesforce

We have a visualforce page to enter notes. On button click, we have to store the page as a word document in salesforce. So we use the getter setter variable contentType to render the page as the word ...
0
votes
0answers
40 views

insert attachment getcontentaspdf not loading data dynamically

I have a method that call a vf page and render as pdf the following Pagereference test = new Pagereference ('/apex/claire'); return test; that gives me the page I am expecting after that the ...
0
votes
1answer
33 views

Salesforce VF - getContent() and getContentAsPdf() timeout

How to set extent default timeout for getContent and getContentAsPdf? Those are considered as callouts so I assume it should be possible to set timeout. We are using them to generate PDF files from ...
0
votes
0answers
406 views

Not able to save quote document as pdf display from the visualforce page

I have one visualforce page called : QuoteDetail. This page have button called : Generate PDF. This Generate pdf open up a popup with selection (checkboxes) 1. Remove items with no quantity 2. Show ...
0
votes
1answer
90 views

apex:repeat render as pdf cant format based on css tags for table or td or th or span

.bPageBlock .pbBody table { min-width: 90% !important; max-width: 90% !important; width: 90% !important; margin: 0 auto !important; } .bPageBlock .pbBody td { width: 45% !...