pdf-generation

Arabic text with iTextSharp RTL

 ̄綄美尐妖づ 提交于 2021-01-29 14:34:10
问题 I have the below situation and issue I would like to ask your input and help. At the company we have an app that generates PDF and we are using iTextSharp for that purpose. And so far we used only Latin alphabet, but now we have to upgrade the app to use Arabic alphabet too. The generator gets the input in json file and it already contains the proper Arabic texts in the proper format (I mean in right to left format) The ColumnText component (from iTextSharp) gets everything that is needed to

Export Specific sheet to PDF [duplicate]

半城伤御伤魂 提交于 2021-01-29 10:57:32
问题 This question already has answers here : Export Single Sheet to PDF in Apps Script (2 answers) Closed 3 months ago . I am aware that similar type of question has being asked earlier under the Using Google Apps Script to save a single sheet from a spreadsheet as pdf in a specific folder The code that was used is working for me and is mentioned below: function generatePdf() { // Get active spreadsheet. var sourceSpreadsheet = SpreadsheetApp.getActive(); // Get active sheet. var sheets =

Generate a pdf with images on header and footer with iText

烂漫一生 提交于 2021-01-29 09:57:52
问题 I am looking forward to create a pdf using iText. The pdf will have a header and a footer. Both the header and footer will have a image (company logo) in it. I am looking forward to an example similar to that. I will be using the iText library for the first time so I am not sure where to start off from. 回答1: To add headers and footers to a PDF you generate using iText 7.x, you will generally create event listeners for page starts and/or page ends and add the header and footer contents there

Merge to pdf files from excel VBA doesn't export cells correctly

六月ゝ 毕业季﹏ 提交于 2021-01-29 05:55:16
问题 I'm trying to mail merge from Excel to individual pdf files using VBA. Here is a small example: The word document "Testdoc.docx" only contains the mergefield << Name >> Here is the VBA-code: Sub Test() Dim wdOutputName, wdInputName, PDFFileName As String Dim x As Long Dim nRows As Long wdInputName = ThisWorkbook.Path & "\Testdoc.docx" Const wdFormLetters = 0, wdOpenFormatAuto = 0 Const wdSendToNewDocument = 0, wdDefaultFirstRecord = 1, wdDefaultLastRecord = 3 nRows = Sheets(1).Range("A" &

Compress PDF after manipulation

笑着哭i 提交于 2021-01-28 18:22:40
问题 I have the following problem: I am receiving various scanned PDF files from a Kyocera Scanner Device. I have to automatically manipulate these PDF Files in order to: Delete the colors from textmarkers Convert the PDF to grayscale Put it in our DMS I am using a Bash-Script to do the job. For deleting the textmarker colors and converting to grayscale I use Imagemagick: convert -density 150 INPUT.pdf \ -channel rgba \ -alpha set \ -fuzz 15% \ -fill white \ -opaque 'rgb(255,200,195)' \ -opaque

Is there a way to print multiple tabs of a spreadsheet (but not all of them) as a single pdf?

拈花ヽ惹草 提交于 2021-01-28 07:55:01
问题 I've done some research but haven't found any way to do this. Tried to do what Andrew Roberts explains here http://www.andrewroberts.net/2017/03/apps-script-create-pdf-multi-sheet-google-sheet/ to convert the spreadsheet (or a specific tab) to pdf: function convertSpreadsheetToPdf(email, spreadsheetId, sheetName, pdfName) { var spreadsheet = spreadsheetId ? SpreadsheetApp.openById(spreadsheetId) : SpreadsheetApp.getActiveSpreadsheet(); spreadsheetId = spreadsheetId ? spreadsheetId :

Need to disable an automatic URL hyperlinking with XSL-FO when generating a PDF document?

落爺英雄遲暮 提交于 2021-01-27 23:30:46
问题 I'm using Apache XSL-FO to generate a PDF document from an XML using XSLT. In my XSL file I have an fo:block where I bring a URL and simply display it like this: xsl:value-of select="company_info/website" My website always contains a valid URL for some company, starting with www.abc.com It seems like that by default anything with a www is being recognized as a URL and becomes linkable. It does not seem like I can force the link of that company to load in a new window, as it always loads the

How to Export HTML to PDF (multiple pages) using jQuery?

我只是一个虾纸丫 提交于 2021-01-27 20:04:33
问题 I want to Export HTML to PDF using jQuery that is working fine but only for when HTML will finish in single page PDF. But I'm facing difficultly export html to PDF when there is lots of data in html and PDF pages may be more than one. My code: $("body").on("click", "#downloadPDF", function () { html2canvas($('#downloadPDFData')[0], { onrendered: function (canvas) { var data = canvas.toDataURL(); var docDefinition = { content: [{ image: data, width: 500 }] }; pdfMake.createPdf(docDefinition)

Programmatically signed PDF document does not get the green checkmark after being signed using Acrobat Reader

北城余情 提交于 2021-01-07 03:52:58
问题 I have written an application to sign PDF documents and now I am able to sign any non-signed PDF document, and Adobe Reader shows the green checkmark. Moreover I can sign a file with multiple signatures and the results are ok. But if I try to sign the document using Adobe Reader, when I sign it again, the result is that any signature prior to the last one does not get the green checkmark because Acrobat thinks that the document has changed. Then, if I sign the document again using Adobe

Howto keep PDF-A when signing a document using IText SignDeferred

烈酒焚心 提交于 2021-01-05 05:54:11
问题 I do apply a signature to a pdf document via delayed signing(SignDeferred) using IText. The process contains the following steps: Prepare the pdf document for siging Reserve space for the signature in the pdf document Create the hash value of the pdf document Create the signature based on the hash value Using a self signed certificate Apply the signature to the pdf document The whole process works and i end with a pdf document where the signature is set and is valid. The original pdf is a PDF