@SumitKumar10
For LWC I didn't get any solution but for Aura component you can show preview on community.For You can refer below code:Component Code:
<aura:iteration items="{!v.SignedGADPackage}" var="item" indexVar="index">
<tr><td width="25%">{!item.docName}</td><td width="25%"><lightning:formattedDateTime value="{!item.generatedDocTime}" year="numeric"month="numeric" day="numeric" hour="2-digit" minute="2-digit"hour12="true" /></td><td width="25%">{!item.generatedBy}</td><td width="25%"><a href="" id="{!item.conDocId}" onclick="{!c.previewFile}">View <lightning:icon size="x-small" iconName="action:preview" alternativeText="Preview"title="Preview" /></a> <a href="javascript:void(0)" id="{!item.conDocId}"onclick="{!c.downloadFiles}">Download <lightning:icon size="x-small" iconName="action:download" alternativeText="Download"title="Download" /></a></td></tr></aura:iteration>
JS Code:
previewFile: function (component, event, helper) {var rec_id = event.currentTarget.id;$A.get('e.lightning:openFiles').fire({recordIds: [rec_id]});},downloadFiles : function (component, event, helper){var documentId = event.currentTarget.id;var urlString = window.location.href;var baseURL = urlString.substring(0, urlString.indexOf("/s"));var urlEvent = $A.get("e.force:navigateToURL");urlEvent.setParams({"url": baseURL + '/sfc/servlet.shepherd/document/download/' + documentId + '?operationContext=S1'});urlEvent.fire();},Please markit as best answer if this helps you.Thanks,Arpit
#Lightning Experience12 diskutieren mit
- Letzte Aktivität
- Erstellt am
- Empfohlen
- Alle Fragen
- Fragen mit einer akzeptierten Antwort
- Unbeantwortete Fragen
- Fragen ohne akzeptierte Antwort
25. Sept., 11:49 Try
DumpingCloudto merge multiple PDFs into one PDF in Salesforce.
:-
https://dumpingcloud.com/merge-salesforce-files/
25. Sept., 08:26 I’d first split the CSV into smaller batches and see if it always dies around the same record. That usually makes it easier to tell if it’s the file/data or Data Loader itself. I’ve also used Skyvia for Salesforce imports when Data Loader was giving me trouble, mostly because I could see the failed records and errors without restarting the whole thing.

11. Sept., 16:35 Hey all, we can use Blob.toPDF to generate a PDF in Apex and download it using the Lightning component.
Refer to the post.
How to Use Apex for Effective PDF Document Generation and
Generate PDF using jsPDF in Lightning Web Component
for step-by-step instructions and a guide.
Thank you,
Dhanik

below is the set of java code.
import org.apache.pdfbox.multipdf.Splitter;
import org.apache.pdfbox.pdmodel.PDDocument;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Iterator;
public class SplitPages {
public static void main(String[] args) throws IOException {
//Loading an existing PDF document
File file = new File("C:/PdfBox_Examples/sample.pdf");
PDDocument document = PDDocument.load(file);
//Instantiating Splitter class
Splitter splitter = new Splitter();
//splitting the pages of a PDF document
List<PDDocument> Pages = splitter.split(document);
//Creating an iterator
Iterator<PDDocument> iterator = Pages.listIterator();
//Saving each page as an individual document
int i = 1;
while(iterator.hasNext()) {
PDDocument pd = iterator.next();
pd.save("C:/PdfBox_Examples/sample"+ i++ +".pdf");
}
System.out.println("Multiple PDF’s created");
document.close();
}
}
7. Sept., 05:19 Hi @Kishore,
You can checkout this free Google Chrome Extension - Dumping Cloud to perform this action.
Refer -
https://dumpingcloud.com/split-pdf-word-documents-in-salesforce/
25. Aug., 14:10 In my case I used empty attributes for active and inactive toggle as these were unwanted. It reduced the height
<lightning-input
type="toggle"
label="All"
message-toggle-active=""
message-toggle-inactive="">
</lightning-input>

1. Nov. 2019, 09:42 Hi Sachin,Greetings to you!You cannot use the Developer Console to develop LWC. To experiment with Lightning Web Components, you can use the Lightning Web Components Playground: https://developer.salesforce.com/docs/component-library/tools/playgroundBut there are some limitations:1. The playground doesn't provide Security with Lightning Locker.2. The playground can’t access Salesforce organizations, so it doesn’t support features that require data from Salesforce.https://developer.salesforce.com/docs/component-library/documentation/lwc/install_playgroundAs per doc: https://developer.salesforce.com/blogs/2018/12/developer-tools-for-lightning-web-components.htmlThere are other IDE as well for developing Lightning Web Component like Illuminated Cloud (https://plugins.jetbrains.com/plugin/10253-illuminated-cloud-2) but Salesforce recommends Visual Studio Code and the Salesforce Lightning Web Components Extension for VS Code. This combination provides powerful connections to the Salesforce CLI from within VS Code, plus additional features specific to developing Lightning web components for Salesforce.I hope it helps you.Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean. Thanks and Regards,
Khan Anas
4. Aug., 16:03 I don't know if anyone has found solution for this or not, only way to do this is open the Lightning messaging channel in VS code, right click from directory and select "Delete from project and org"
3. Aug., 10:58 Thanks for the direction, Gustavo Silva . I checked your post, but still spent two days finding a solution!
For me, the Process Automation Settings for "Automated Process User Email Address" was still pointing to an old "No Reply" ID. When the org-wide address was removed/updated, it should have auto-updated to show or point to the latest one. That was my issue.
The case is now with Salesforce, and I'm hoping they can help by making the latest address available in the dropdown list — hopefully they can get this fixed.
- Please refer following action attribute onload code :
public PageReference createStandOpportunities()
{Set<String> numberSet = ParserHelper.getNumberSet();List<Opportunity> insertOppList = getOpportunityList(numberSet); if(insertOppList.size() > 0){ createOpportunities(insertOppList); }}private List<Opportunity> getOpportunityList(Set<String> numberSet){List<Opportunity> insertOppList = new List<Opportunity>();for(String eachNumber : numberSet){ Opportunity newOpp = new Opportunity(); newOpp.Name = 'Opp-'+eachNumber; newOpp.Posted_Date__c = Date.today(); newOpp.Data_Id = eachNumber; newOpp.StageName = 'Prospecting'; newOpp.CloseDate = Date.newInstance(2080, 1,1); insertOppList.add(newOpp); }return insertOppList;} private void createOpportunities(List<Opportunity> insertOppList){try{ if(!insertOppList.isEmpty()){ insert insertOppList; System.debug('Opportunity inserted.....'); } }catch(Exception ex){ System.debug('Ex = '+ex.getMessage()+ ' : '+ex.getLineNumber()); }}6. Feb. 2019, 10:59 My Redirect code PageReference pageRef = new PageReference('/lightning/o/'+SOBJECT_TYPE_NAME+'/list?filterName=All'); pageRef.setRedirect(true); return pageRef;