pdf-generation

Generate PDF of only one sheet of my spreadsheet

久未见 提交于 2019-12-17 20:42:41
问题 I need a script that creates a PDF with only one sheet of my spreadsheet. I currently have a script that generates a PDF but does it with the entire file. I can not copy the values to another file, since the sheet I need to export is graphics with data extracted from another sheet. Could you help me? Thank you. function myFunction() { var archivo = SpreadsheetApp.getActive(); var hoja = archivo.getSheetByName("Graficos 2"); var id = archivo.getId(); var archivoId = DriveApp.getFileById(id);

Create Multipage PDF directly from UiTextView in Ipad

混江龙づ霸主 提交于 2019-12-17 20:38:57
问题 I have created pdf with specific layout. The problem is that When the contents of text view is very long, Pdf will not automatically generate new page and I can not predefine how many pages will be created at run time. Can anyone please help me? 回答1: You can try by using this code this may help you Keep a textview and a button in Interface builder and use the button action method and generate pdf import these frameworks #import <QuartzCore/QuartzCore.h> #import <CoreText/CoreText.h> -

Including links within Rmarkdown tables (pdf)

两盒软妹~` 提交于 2019-12-17 19:48:51
问题 I am trying to include links to particular webpages in a 'kable' table in Rmarkdown, when creating a pdf. The table has 4 columns, and I wish for the links to be in the second column, which currently includes strings. The output of the table is given below; knitr::kable(ind_rank_table_final,row.names = FALSE,caption = "Industry Rank",align = rep("l",ncol(ind_rank_table))) 回答1: Using paste0 , you can construct markdown-formatted URLs in your dataframe, and then pass that to kable , like so: --

Convert doc to pdf using Apache POI

有些话、适合烂在心里 提交于 2019-12-17 19:00:41
问题 I am trying to convert doc to pdf using Apache POI, but the resulting pdf document contains only text, it is not having any formating like images, tables alignment etc. How can I convert doc to pdf with having all formattings like tables, images, alignments? Here is my code: import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.OutputStream; import com.lowagie.text.Document; import com.lowagie.text.DocumentException; import com.lowagie.text

DOMPDF problem with Cyrillic characters

丶灬走出姿态 提交于 2019-12-17 18:25:24
问题 I am using the DOMPDF library to create an invoice in PDF. This document can be in French, Russian or English, but I am having trouble printing Russian characters. First, I tried to use UTF-8 encoding and placed the meta tag in the head of the HTML page to be converted: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> But that didn't work. Then I inserted this meta tag inside the BODY tag, and it helped solve the problem with French characters. But Russian characters

How to Insert a Linefeed with PDFBox drawString

送分小仙女□ 提交于 2019-12-17 16:36:08
问题 I have to make a PDF with a Table. So far it work fine, but now I want to add a wrapping feature. So I need to insert a Linefeed. contentStream.beginText(); contentStream.moveTextPositionByAmount(x, y); contentStream.drawString("Some text to insert into a table."); contentStream.endText(); I want to add a " \n " before "insert". I tried " \u000A " which is the hex value for linefeed, but Eclipse shows me an error. Is it possible to add linefeed with drawString? 回答1: The pdf format doesn't

Is there any way to generate PDF file from a XML/HTML template in iOs

放肆的年华 提交于 2019-12-17 15:45:17
问题 I am creating an iPad application, in that i have to use different PDF forms. I got some methods to generate PDF files through code using Quartz2D. But I have to write entire forms through code. I may have to update the PDF forms in future, so again I have to write the code. So I heard that there is a component called iTextSharp for .net pdf creation - is there something similar for iOS? So that I can use some XML templates to create the PDF files. Please help, thanks 回答1: I do this in my app

TCPDF UTF-8. Lithuanian symbols not showing up

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-17 09:23:31
问题 Im using latest TCPDF version(5.9). But have some strange problems with encoding. I need Lithuanian language symbols like: ąčęėįšųūž. But get only few of it. Other remain like ????? So what should I do ? I use default times font(it comes with TCPDF download). Any help would be appreciated. 回答1: Set the $unicode parameter on the TCPDF constructor to false and the $encoding parameter to 'ISO-8859-1' or some other character map. This will help you: Default for UTF-8 unicode: $pdf = new TCPDF(PDF

TCPDF UTF-8. Lithuanian symbols not showing up

烂漫一生 提交于 2019-12-17 09:23:07
问题 Im using latest TCPDF version(5.9). But have some strange problems with encoding. I need Lithuanian language symbols like: ąčęėįšųūž. But get only few of it. Other remain like ????? So what should I do ? I use default times font(it comes with TCPDF download). Any help would be appreciated. 回答1: Set the $unicode parameter on the TCPDF constructor to false and the $encoding parameter to 'ISO-8859-1' or some other character map. This will help you: Default for UTF-8 unicode: $pdf = new TCPDF(PDF

Directly convert .aspx to .pdf [closed]

末鹿安然 提交于 2019-12-17 06:07:24
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . A project I am working on requires me to build a report that is output in both HTML (.aspx) and as a PDF. Is there a solution