pdf

how to convert android imageview coordinate to PDFView coordinate for adding electronic signature in PDF box library?

喜夏-厌秋 提交于 2021-02-11 17:37:17
问题 I want to add an electronic signature to a pdf. i am using signature pad library for capturing signature and sticker view for moving, scaling and rotating image StickerView. I am rendering the PDF in android using PDFView library to render PDF. i am using PDFbox by tomroush to manipulate pdf in android. i want to add image of signature to the pdf. but there is problem in mapping android view coordinates to pdf box coordinates. i am attaching code for what i have tried //loading pdf pdfView

how to convert android imageview coordinate to PDFView coordinate for adding electronic signature in PDF box library?

有些话、适合烂在心里 提交于 2021-02-11 17:34:47
问题 I want to add an electronic signature to a pdf. i am using signature pad library for capturing signature and sticker view for moving, scaling and rotating image StickerView. I am rendering the PDF in android using PDFView library to render PDF. i am using PDFbox by tomroush to manipulate pdf in android. i want to add image of signature to the pdf. but there is problem in mapping android view coordinates to pdf box coordinates. i am attaching code for what i have tried //loading pdf pdfView

Viewing .pdf files in Chromecast

天大地大妈咪最大 提交于 2021-02-11 15:20:57
问题 I've set up a simle .html page that'll load cast-index.php to the Chromecast device (using the API key). The cast-index.php is supposed to show a schedule in .pdf file format. So far I've tried multiple ways to make this work and all of them have failed. A simple <embed src="pdf/test.pdf" width="100%" height="50%" type='application/pdf' /> doesn't seem to function at all. Loading the cast-index.php directly into the Chrome browser shows a perfectly readable .pdf file however loading the same

iText 7 Text Watermark annotation not recognized by Adobe Reader - uneditable text

走远了吗. 提交于 2021-02-11 14:53:09
问题 I am able to add and remove a page header using a text watermark annotation using itext 7 and C#. I am able to see and print the PDF via Adobe Acrobat Reader. @remy However, I am unable to use Adobe Acrobat Pro DC to remove the pager header. When I do a search and replace, it says text is un-editable. The PDF files are located here: PDF Files Original, With Watermark Step2 and WaterMark Removed Step3 public static string CompanyName= "ACME77"; public static string AnnotName = CompanyName +

How to use Fonts in iText PDF

天涯浪子 提交于 2021-02-11 14:25:27
问题 I have a java application where i have to use "Bodoni MT Black" font using FontFactory in itextPdf how should i modify my code? This is my code, Font base = FontFactory.getFont(FontFactory.TIMES_ROMAN, 6); how to change font to "Bodoni MT Black" (Not supported in FontFactory) instead of TIMES_ROMAN? please help. 回答1: The code in your question is code that uses iText 5. However, iText 5 is no longer supported. The current version of iText is iText 7.1.2: If you are working on a new project,

Running (Generate PDF) soffice LibreOffice on Windows PHP exec() doesn't work

风流意气都作罢 提交于 2021-02-11 13:44:01
问题 I'm trying to generate a pdf from docx using soffice so i try it on apache linux and its works, but im trying in windows server 2012 and IIS 6.2. If i run this command on CMD its works: soffice --headless --convert-to pdf:writer_pdf_Export --outdir ../../storage/app/ACTIVO/2019-03/3404/docx/ ../../storage/app/ACTIVO/2019-03/3404/docx/documento_word.docx So in PHP I try this: $comando = 'soffice --headless --convert-to pdf:writer_pdf_Export --outdir ../../storage/app/ACTIVO/2019-03/3404/docx/

Cannot download more than 10 files at a time using html2pdf

旧城冷巷雨未停 提交于 2021-02-11 13:42:21
问题 Here is my code: Download tikarray.js file from here: https://drive.google.com/file/d/1CxmEO1jBOVft6y68BZyuXBAAby7lXwi2/view?usp=sharing <!DOCTYPE html> <html> <head> <title></title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre.min.css"> <script src="tikarray.js"></script> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <title>HTML to PDF Eample<

Systematically annotate a PDF

北城以北 提交于 2021-02-11 13:37:33
问题 I have a large PDF file with several hundred pages. Each page of the PDF contains a chart and also includes a unique identifier (the chart number). I have individual comments for each chart and would like to insert these in the corresponding PDF page, e.g. chart comment 34 goes in PDF page containing chart 34. My current approach is to insert these comments manually, one by one, using the comment tool in Adobe Acrobat Pro. This takes time as you can imagine. Is there a way to speed up this

Add images taken with camera package to pdf

人盡茶涼 提交于 2021-02-11 13:33:09
问题 I am using camera package in order to take images from my phone. Now I want to convert those images to one single pdf file by clicking on a button. For that I am using pdf package. The problem is, when I take an image/images and click on the button I am always getting this exception: Exception: This widget created more than 20 pages. This may be an issue in the widget or the document I have read many suggestions here: #145, #146 and here stack but nothing helped in my case. Only case where I

How to change the width of lines in a PDF/PostScript file

笑着哭i 提交于 2021-02-11 13:29:00
问题 I regularly need to handle technical drawings (mechanical engineering) and they often come with colored lines, which can't be printed properly. Therefore I wrote the batch script listed below. It uses ghostscript to convert drawings to black & white; note that greyscales aren't sufficient, as they might be barely visible on a laser print. The batch script even handles multiple files dragged and dropped on it. Now I encounter a large bunch of drawings which appear to have linewidths of