My current requirement is to convert LWC page into PDF format. I tried built in 're-render as PDF' option though VF page.   But it does not look good &amp; i am not able to add Graphs/Charts into it.  Does anyone know to any way to convert LWC/Aura component to PDF format with graphs/chart included?  Please help!!
123755
I use LWC components in Customer Community. There is datatable component with records and I implemented the function to export selected records in .csv and .pdf.  csv works fine, but I experience the next issue when downloading the file as pdf:   Here is the code I use to create and download the file:  main.js  handleExportAction(evt) {     const selectedFormat = evt.detail.value;     try {         let _file;         let _type;         switch (selectedFormat) {             case 'csv':                 _file = parseToCSV(this.columns, this.selectedRows);                 _type = 'text/html';                 break;             case 'pdf':                 _file = parseToPDF(this.columns, this.selectedRows);                 _type = 'application/pdf';                 break;             default:                 _file = undefined;                 _type = undefined;         }         downloadDataAsFile('Subscription Overview.' + selectedFormat, _type, _file);     } catch(e) {         console.error(e);     } }   service.js - parse&amp;donwloadFile functions  const parseToPDF = (tableCols, rows) =&gt; {     let cols = [];     tableCols.filter(el =&gt; cols.push('&lt;th&gt;' + el.label));      let fileData = '&lt;html&gt;&lt;head&gt;';     fileData += '&lt;title&gt;Subscription Overview&lt;/title&gt;';     fileData += '&lt;body&gt;&lt;table&gt;';     fileData += '&lt;tr&gt;';     fileData += cols.map(col =&gt; col).join('&lt;/th&gt;') + '&lt;/th&gt;';     fileData += '&lt;/tr&gt;';     fileData += '&lt;tr&gt;';     fileData += '&lt;td&gt;Test Data&lt;/td&gt;';     fileData += '&lt;/tr&gt;';     fileData += '&lt;/body&gt;&lt;/html&gt;';     console.log('file: ' + fileData);      return fileData; };  const downloadDataAsFile = (name, type, data) =&gt; { var file = new Blob([data], { type: type }); if (window.navigator.msSaveOrOpenBlob) { // IE10+     window.navigator.msSaveOrOpenBlob(file, filename); } else { // Others     var a = document.createElement("a"),         url = URL.createObjectURL(file);     a.href = url;     a.download = name;     document.body.appendChild(a);     a.click();     setTimeout(function () {         document.body.removeChild(a);         window.URL.revokeObjectURL(url);     }, 0); } };   The body (fileData) variable is for testing purposes, I tried other options but the result was the same.   Probably the issue is in contentType which I set as application/pdf?  I did not find any limitations related to creating pdf files with js. Did someone experienced this issue before?   Thanks in advance.
28809
I :   Aura Components, leveraging its own component model, templates, and modular development programming model. Lightning Web Components, built on top of the web standards breakthroughs of the last five years: web components, custom elements, Shadow DOM, etc.   Apart from both using , and perhaps common component names, at first sight, these look as different as  are.  Can anyone who has worked hands-on with both Aura Components and Lightning Web Components - pilot participants? - comment about how much commonality there is in the framework and tools, and what the learning curve is like for Lightning Web Components?  (I'm hoping this doesn't get closed for being a matter of opinion; my aim is to get some insight into how easy or hard it will be to switch over.)
26816
I have a couple custom lightning pages and apps, both overriding default record views and standalone pages (just straight nav to from the sidebar). It seems that every time we go from 'tab' to 'tab' it just hides the content rather than destroying it. When you navigate back to the tab, it does recreate the components, so you end up with 2 of everything sitting out there.  I noticed this b/c we have a component that registers to an app event. And every time you navigate away from and back to the page, the handler is registered +1. So going back and forth a few times you pretty quickly have 10s of the same handlers firing for each app event.  Anyone seen this? Thoughts?  If you create a Lightning App, add this component, and assign it to lightning menu you can see what I mean. Just go the app click home and then click back:  Comp:  &lt;aura:component implements="force:appHostable,flexipage:availableForAllPageTypes"&gt;     &lt;aura:handler event="c:BoringAppEvent" action="{!c.test}"/&gt;     hi     &lt;ui:button press="{!c.onClick}" &gt;App Event&lt;/ui:button&gt; &lt;/aura:component&gt;   controller:  ({     test : function(component, event, helper) {         console.log('Clicked');     },     onClick : function(cmp, evt){          var notEvt = $A.get('e.c:BoringAppEvent');          notEvt.fire();     } })   Renderer  ({     unrender: function(){         this.superUnrender();         console.log('unrender');         debugger;     } })   BoringAppEvent.evt  &lt;aura:event type="APPLICATION" description="Event template" /&gt;
72749
We want to perform different logic in our LWC component js controller if the user is viewing our app in mobile.  With aura components, we could do:  if ($A.get("$Browser.formFactor") != 'DESKTOP') {     //do something for mobile only here }   How can we do this with LWC?
30948
I am adding an LWC component in visualforce and need to add a handler for an event fired in the LWC component on the visualforce page. When googling all I can find is examples of how to do this with aura component using application events. LWC controller: handleSearchClick() {              const searchinfo = {          shipper: this.shipper,         system: this.system,         product: this.product,         status: this.template.querySelector('c-lwc-multi-select').value(),         period: this.period       };     this.dispatchEvent(new CustomEvent(         'dosearch',          {             detail: { data:  searchinfo},             bubbles: true,             composed: true,         }     ));     console.log({ 'lwcNominationSearch searchinfo': searchinfo }); }  AURA app: &lt;aura:application extends=&quot;ltng:outApp&quot; access=&quot;GLOBAL&quot;&gt; &lt;aura:dependency resource=&quot;c:lwcNominationSearch&quot; /&gt; &lt;aura:dependency resource=&quot;markup://force:*&quot; type=&quot;EVENT&quot;/&gt; &lt;/aura:application&gt;  Visualforce: &lt;div id=&quot;rcontainer&quot;&gt; &lt;/div&gt;  &lt;script&gt;     $Lightning.use(&quot;c:NotificationSearch_ltngoutApp&quot;, function()     {         $Lightning.createComponent(         &quot;c:lwcNominationSearch&quot;,         {},         &quot;rcontainer&quot;,         function(cmp)         {             console.log('component created');              //$A.eventService.addHandler({ &quot;event&quot;: &quot;c:myEvent&quot;, &quot;handler&quot; : visualForceFunction})               $A.eventService.addHandler({                 event: 'dosearch',                 handler: function (event) {                          console.log(&quot;vf event success&quot;);                 }             });          });     }); &lt;/script&gt;
68021
(This is an end-of-year crazy question)   Is it possible to embed a (scrollable) frame or a PDF inside a PDF? If so, how to do it in (pdf)LaTeX?  This is something pretty common in HTML (see for example ). Here it is a webpage with PDF frames   Here it is a fake screenshot so you get the idea.  Portable and non-portable (e.g. only-Acrobat) answers are welcomed.     Example of a down arrow below a frame. The up arrow can be on top of the frame and the triangles point up.
118727
I would like a way to convert a document from HTML to LaTeX on a Windows platform. What is my best option?
7552
Is there a converter that will convert LaTeX to HTML? I have tried several services but the LaTeX diagrams and some of the maths came out weird.  I actually converted the Latex to PDF without a problem. Then I used  to convert from PDF to HTML. The square root signs did not appear properly and some of the Cartesian coordinate plane diagrams had nothing on them except the grid.   \documentclass[12pt,a4paper]{report} \usepackage{amssymb} \usepackage{amsthm} \usepackage{amsmath} \usepackage{pstricks,pst-plot} \usepackage{pst-eucl} \addtolength{\hoffset}{0.2cm} \addtolength{\textwidth}{1.1cm} \addtolength{\textheight}{1.0cm} \addtolength{\voffset}{-0.7cm} \linespread{1.3} \begin{document}  If $x$ is non-positive then $x \leq -\sqrt{\frac{1}{2}}$     $\hspace{30 mm} $     (6)\\  (4) and (6) tell us that\\  (4)  $-1 \leq x \leq 0$  \\  (6)  If $x$ is non-positive then $x \leq -\sqrt{\frac{1}{2}}$\\  Therefore $-1 \leq x \leq -\sqrt{\frac{1}{2}}$\\  \vspace{50 mm}  \begin{align*} \psgrid[unit=2cm](0,0)(-2,-2)(2,2) \pnode(-1.8,.87){b}\uput[50](b){b} \pnode(-1.8,1.8){a}\uput[50](a){a} \psset{linecolor=green} \psline[linewidth=1pt](-1.8, 0)(-1.8,4) \psset{linecolor=green} \psline[linewidth=1pt](-1.8, 0)(-1.8,-4) \psset{linecolor=blue} \psellipticarc(0,0)(2,2){0}{180} \psset{linecolor=red} \psline[linewidth=1pt,linestyle=dashed,dash=2pt](-2,2)(-1.41,1.41) \psset{linecolor=red} \psline[linewidth=1pt](-1.41,1.41) \psset{linecolor=red} \psline[linewidth=1pt]{-&gt;}(4,-4) \psset{linecolor=red} \psline[linewidth=1pt]{-&gt;}(-2,2)(-4,4) \end{align*}  \end{document}   PDF output:    PDF->HTML output:
121852
Is it possible to reference a standard Lightning page component in a Lightning Web Component? And if so, how is this done? I have not been able to find any documentation on this subject.  (I am specifically wanting to reference the "Related Record" component in an LWC)
97574
I'd like to insert a URL into this document. Is there a "correct" way of doing that? If so, is there a way to turn it into a link inside the final pdf generated with pdfTeX or XeTeX?
108745
I face the problem of converting my file into PDF. Everything was working fine until today.  I reinstalled my LYX to 2.1.3. And now when I want to convert to PDF , it does not see my graphs inserted as .emf files.   How to fix this problem ? it says : 'An error occurred while running epsdpdf -outfile .....'. What can it mean?
52383
Consider the following minimal working example.   It's great to have an animation in pdf format.   But sometimes it would be good to be able to export it into an animated gif or something else (swf, video file, svg?).  How do I achieve this?   Note: I often have animations together with pgfplots.     \documentclass{article}  \usepackage{animate}  \usepackage[active,tightpage]{preview} \PreviewEnvironment{animateinline}  \begin{document}  \begin{center} \fboxsep1mm     \begin{animateinline}[autoplay,loop]{2}     a     \newframe         b     \newframe       c                      \end{animateinline} \end{center}  \end{document}   Remark   The animation is not visible in all PDF viewers. It surely works with a current Adobe Reader.
114745
I am trying to Preview and download document from LWC, From apex controller i am returning Map&lt;> contains ID and Document name, and iteration that map data in html file and passing map.key value to href url, but dynamic is not populating in URL.    &lt;template for:each={mapData} for:item="mapkey"&gt;                            Test: {mapkey.key}                                                         &lt;lightning-button-icon key={mapkey} icon-name="utility:download"  variant="bare" alternative-text="Settings"&gt;&lt;/lightning-button-icon&gt;                                &lt;a key={mapkey} style="color: #000000"  href ="/sfc/servlet.shepherd/document/download/{mapkey.Key}?operationContext=S1" target="_blank" preview= "{mapkey.value}"&gt;{mapkey.value}&lt;/a&gt;                          &lt;/template&gt;    JS Code:      .then(data =&gt; {            /// var conts = data;                   console.log('data map---&gt;'+data);     if(data){     // eslint-disable-next-line guard-for-in     for(let key in data) {    this.mapData.push({value: data[key], key:key}); //Here we are creating the array to show on UI.    }       } })   Apex Code:   @auraenabled /* Method will return a Map Contains Document ID and Name */ public static Map&lt;string,string&gt; getUrls( string searchstr){     Map&lt;string,string&gt; contdocidandtitle = new Map&lt;string,string&gt;();     system.debug('searchstr'+searchstr);             For(Document cd :[select id,folderid,name from document where folder.name =:searchstr]){         contdocidandtitle.put(cd.id,cd.name);                 }     return contdocidandtitle; }   Error is: sfc/servlet.shepherd/document/download/%7Bmapkey.Key%7D?operationContext=S1 in URL "mapkey.key" priniting instead of ID Help me with valuable suggestions.
59804
I'm working on a custom report (Visual Force) to generate specific charts(using apex:radar chart) to our client. The problem is that we have to export the information to PDF format. Using the technique of include "renderAs" property on APEX tag, the PDF is generated but the chart isn't included on the PDF and the apex tags, used to show detailed information in a table, seem to be unconfigured. Have anyone ever faced this kind of problem?     Thank you!
50911
I'm trying to use  in some components but I only got basic html component in my page.  For example I add this button :  &lt;lightning:button variant="brand" label="Précédent" onclick="{!c.previousPage}"/&gt;   It is the only lightning base element in my component, maybe I have to insert it into a special element, like a container ?   My Salesforce org is in spring 17.  Here is the kind of button I got :  instead of button with slds design.  Edit : I try differents browsers but I always get the same result.
110313
I would like to use TikZ in other settings than TeX and I'd especially like to use the drawings on websites where the text should be searchable and selectable. However, I'm unsure of the best way to convert my drawings to SVG.  How do I best take some TikZ code, render the drawing and turn the output into SVG?
122793
I have PowerPoint slides with visual effects on them, so each line appears after clicking on the screen in the presentation. When I convert them to PDF the slides are mostly empty and only some titles are in them and the lines that had the visual effect don't appear.  They come out looking like this:    How can I convert them to PDF properly, without having to go through all of the slides (there are like 200 of them) and removing each effect?