pdf invoice in node.js - node.js

I want to create a pdf invoice which has a dynamic table i.e. items in that particular table can be 1 or 100.
Now my problem if the content of table is large so that it can not fit into a single page then i need to add new page automatically.
Right now i am using pdfkit which provide me addPage() function to add the page but it has some design constraints and some times it is very difficult to convert a particular design into pdf.
I am thinking about phantomjs but i am not sure about how it adds a new page dynamically
can someone has better soultion for this

Related

Can I tell NetSuite Advanced PDF/HTML to treat data item as HTML?

I’m new to NetSuite, just starting to try to develop an Advanced PDF/HTML template. I need to have a text data field contain HTML and have the report generate treat it as HTML.
The objective is that the data source that feeds NetSuite will generate HTML that varies based on the content of the data and other objects associated with it on another system, and to have the report engine render that HTML.
It doesn’t need to support terribly complex HTML basically just a table with columns/rows that may vary based on the data, including having rows that may contain another table.
Any pointers would be greatly appreciated.
Had an expert show me the solution. Here are the steps:
Add the custom field and make it type Rich Text
Develop an invoice template that looks like you want it to look, but put a placeholder string where you want the HTML to go (e.g. HTML_GOES_HERE)
Write a JS scriptlet that will pull the HTML from the record and replace the placeholder. Import it into NetSuite and deploy it
Add a custom action to the form where you view the invoice that will invoke the method in the JS scriptlet

From woocommerce order to customized pdf

I built a website using Wordpress and WooCommerce. Once i have created an order,
i need to have a final page(that i will then convert into pdf) to sum up the order in details. For instance, i need a sheet with the name of the company, some information about the guest and a detailed description of the products with pictures. Of course some information will be static and Others will come from the order.
1) I do not need an invoice (there are several plug-ins for that), i would need a final page showing the information with a layout i choose. Is there any drag and drop tool that helps me costumize a page with static(logo, client info) and dynamic(orders) information?
2) At this point, i can export my order details into Excel file. Is there any way to automatically generate a pdf with custom layout from an Excel file?

Using Microsoft Access Database to put values in an Excel Template

I am trying to build a better structure for creating product specifications for our products, Currently everything is done in excel, as a result every time a value is changed, it takes numerous man hours to make that change to all the specifications. Additionally, our inventory of products continues to grow. I am trying to introduce a new system for developing specifications that will allow me to manage the snowball effect of growing specs and increasing work for simple changes to the entire product line.
My question is, if I build a database with all the necessary values for the template we already use (an excel sheet), is there a way I can enter a part number in the excel template and have all the other values populate into the template at their appropriate locations?
I have posted images of the template and a sample of what the Access database could look like.
Thank you for your help.

PerformancePoint analytic grid hyperlink functionality with KPI images

Within PerformancePoint I am trying to merge the functionality of an analytic grid with the imagery of a KPI scorecard. The analytic grid measures contain an action that lets the user jump to a specific edit page for that measure (based on the intersection of 2 dimensions, Line of Business and Month. That edit page is linked to a database, from which an SSIS package pulls information and processes to fill the cube. Is it possible to add a dynamic hyperlink property to the KPI, one that is based on the intersection of the 2 dimensions, or replace the measure value in the analytic grid with images (similar to a KPI indicator)? I was trying to do it using the API, but I haven't been able to see how to access those particular properties (the associated dimension member values).
Well, I had some screen shots that might have helped make things clearer, but don't have enough reputation to add images to a post, so Ill try and explain it in text.
I want to be able to use a hyperlink action expression such as the one below (which is functional in an analytic grid) on a scorecard KPI or baring that, use an image in place of the actual value in an analytic grid (to give it the appearance of a KPI).
/_layouts/GlobalDeliveryReporting/ProjectStatus.aspx?ProjectID=" + CSTR([Dim Project].[LOB].CurrentMember.PROPERTIES('Key1')) + "&Month=" + CSTR([Dim Status Month].[Months].CurrentMember.Member_Value))
In a nutshell:
I am trying to merge the functionality of the analytic grid action with the indicators of a scorecard Kpi.
I hope that made things a littler clearer.
Thank you
I was able to get this working.
With inspiration from :
http://web.archive.org/web/20080305164525/http://blogs.msdn.com/performancepoint/archive/2007/10/05/implementing-a-hyperlink-from-a-kpi-in-a-scorecard.aspx
For those that may need to do something similar, these were the key elements:
Scorecard
I added a hyperlink property, which causes a click event to fire every time you click on a cell.
Web Page Report
The url for the report points to redirect.aspx. It calls redirect.aspx with a query string parameter of EndPoint_URL which contains the dimension information of the clicked cell.
Redirect.aspx
This page is responsible for parsing values out of EndPoint_URL. Once the correct dimension level is achieved, it creates creates a new query string and redirects to the edit page, otherwise it just returns. The EndPointURL ends up looking like this:
[Level1].[Level2].[Level3].&[Level4].&[Level5].&[Level6].&[Microsoft].&[Level7].&[Level8]&[69621]; [Dim Status Month].[Months].[Status Year].&[2015].&[2015-02-01T00:00:00]
In this instance, the values that need to get passed to the edit page are [69621] and [2015-02-01T00:00:00]. The redirect page parses out the EndPoint_URL, if it reaches the correct depth and finds those values, it will send the user to the edit page, otherwise it will just return.
I put the scorecard and the web page report on a dashboard. Then connected them by passing the url and the memberuniquename of the row and column.
The downside is that it starts loading the redirect page everytime a user clicks on the scorecard, although that page is very lightweight, and once I hide the web page report web part clicking through the scorecard only causes a little blip on the screen.
Let me know if you have any questions!

Sharepoint custom list, dynamic field?

Hey guys, just wondering if their is a simple way to create an Item in a custom list but i need that item to be dynamic. The user can click add more to get another field that would hold the same type of data an unlimited amount of time.
If i could even just add an excel spreadsheet type of field that would work also. But excel wouldnt need to be a requirement on the users machine.
I thought i had read somewhere you could do this using info path but i cant seem to find anything relating to it on google.
The InfoPath feature is called a "repeating section". There is information on how to set that up in Office Online.
If you wanted to achieve this entirely in SharePoint, the problem is that there can only be a fixed number of fields in a list. So you could create as many that would ever be used and just display all of those. Or to make it much nicer for the user incorporate jQuery to hide all of the fields except the first one and provide a button for them to click that unhides the next one.
There is good information on how to access list form fields using jQuery in the question How can I set the default value in a SharePoint list field, based on the value in another field?

Resources