pdf-generation

getting two A6 complete booklet sequences from an A4 page

倖福魔咒の 提交于 2020-01-02 19:19:07
问题 I have an a6 pdf book. I'd like to convert it to an a4 pdf so that when I print it, I can cut the a4 page in two (upside and downside will have the same content, so I'll end up with two copies of the book) and when putting together the pages, they can be read in sequence (I think this is called impose) Supose A,B,C,D are 4 pages of the book. I want the resulting file to be: DA DA and CD CD Was I clear? Sorry if I'm not using the correct terminology. 回答1: as suggested, the mighty Multivalent

Export separate pdfs from SSRS generated report

五迷三道 提交于 2020-01-02 16:54:12
问题 Is it possible for SSRS to name and separate pdf exported files based on parameter groupings? Right now, when I run the report, it only gives me one pdf with 100+ pages. However, at every page-break, I'd like SSRS to create a new pdf file, and it'd be a real time-saver if it would also insert the pdf's filename based on the grouping selection. Is this possible in SSRS, or do i need to use SSIS for this functionality? I'm using 'Visual Studio 2010' for SSRS, and 'SQL Server 2012' for

PHP5 PDF Generation?

人盡茶涼 提交于 2020-01-02 07:32:32
问题 So lately I've been thinking of building and implementing my own invoice system with PHP and I want to have an optional 'Download/Generate PDF' button that creates a PDF based off of either a template that was created or based off of html/css. I want a method that is free (seeing as some are ridiculously overpriced) and hopefully not too difficult to use. The end goal is to create something that would be good enough for commercial use (though it's not my intent to sell it). I've heard of

TCPDF list item margin

☆樱花仙子☆ 提交于 2020-01-02 07:23:13
问题 Couldn't find it anywhere. Having list: <ol> <li>Foo</li> <li>Bar</li> <li>Baz</li> </ol> and CSS: ul li, ol li{ margin-bottom: 10px; } While previewing list in browser, margin-bottom is interpreted correctly. Unfortunately, TCPDF somehow doesn't recognize this style (while recognizing other parts of included css file). Is there any trick/hack to make it work? 回答1: tcpdf allows to define the vertical spaces for HTML tags, see Method setHtmlVSpace of TCPDF Class Documentation, use: $pdf-

TCPDF list item margin

别来无恙 提交于 2020-01-02 07:23:11
问题 Couldn't find it anywhere. Having list: <ol> <li>Foo</li> <li>Bar</li> <li>Baz</li> </ol> and CSS: ul li, ol li{ margin-bottom: 10px; } While previewing list in browser, margin-bottom is interpreted correctly. Unfortunately, TCPDF somehow doesn't recognize this style (while recognizing other parts of included css file). Is there any trick/hack to make it work? 回答1: tcpdf allows to define the vertical spaces for HTML tags, see Method setHtmlVSpace of TCPDF Class Documentation, use: $pdf-

Can anyone recommend a decent FOSS PDF generator for Python?

纵然是瞬间 提交于 2020-01-02 04:58:25
问题 I need a basic pdf generator that'll let me toss some images and text into a pdf file. The ability to have some basic drawing commands (lines and so forth) would also be a plus. I did read through this question, but I really don't need a report generator and most of the responses there seemed like real overkill for what I'm trying to do. (I don't need templates or LaTeX-grade layout control.) 回答1: For one of my projects, I have tested and/or implemented probably six or seven different methods

Android create and print pdf from layout view

爷,独闯天下 提交于 2020-01-02 03:43:07
问题 I am trying to create PDF file from xml layout view. I have a listview in that layout, adding items and setting height based on child. PDF is creating but not filling the whole page. What I have tried is, PdfDocument.PageInfo pageInfo = new PdfDocument.PageInfo.Builder(2250, 1400, 1).create(); // start a page PdfDocument.Page page = document.startPage(pageInfo); // draw something on the page LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); View

Can I mix font weights in the same paragraph when using pdfkit?

≡放荡痞女 提交于 2020-01-02 02:24:53
问题 I'm trying to find a way to use bold font weights for inline emphasis in pdfkit Unfortunately I cannot find a way to change the font without forcing a line break (bad for inline emphasis...). I was trying something like: pdf.text('Hello ', LEFT, 200).font(bold).text('World!'); but this will output Hello World I also digged through the source but could not find any option to prevent this. Anyone has any idea or workaround to tackle this problem? EDIT : All I could come up with by now is a ugly

FPDF error: Could not include font metric file

橙三吉。 提交于 2020-01-02 01:37:09
问题 I have a app which was done by someone else and now i am asked to look into one issue. When a pdf report is generated it throws an error. This app uses FPDF to generate the PDF FPDF error: Could not include font metric file Earlier it was throwing the following error Warning: FPDF::include(helveticab.php) [function.FPDF-include]: failed to open stream: No such file or directory Warning: FPDF::include() [function.include]: Failed opening 'helveticab.php' for inclusion FPDF error: Could not

How to make a multiple table header

坚强是说给别人听的谎言 提交于 2020-01-02 01:10:12
问题 I am trying to make a table with 2 headers merged. At the moment i made 2 seperate tables with 2 seperate headers and it looks okay, but when the table width expands the first table header does not expand. How can i merge the 2 headers or can i make 1 table with 2 tableheaders. Please see picture (how the table is at the moment with 2 tableheaders) Here is my code : function createPDF(){ /** START PDF INSTANCE */ //var doc = new jsPDF('p', 'pt'); var doc = new jsPDF('l', 'pt'); var row = 80;