itext

工具软件

梦想与她 提交于 2020-04-20 17:19:27
作者:秦阳 链接:https://www.zhihu.com/question/378783232/answer/1150278993 来源:知乎 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 01:硕鼠 —— 个人最喜欢的视频下载工具 适用群体:想在网上下载视频的你 推荐指数:★★★★★ 有时候,我在知乎上看到好看好玩的视频,一般都会选择按F12键,然后开始播放视频,并将进度条一下子拖到最后。 这时候我们发现出现了一个文件,此时鼠标右键「Open in new tab」,就能把视频单独调出来: 当我以同样的操作去下载B站(哔哩哔哩)上的视频时,傻眼了,这招居然不行??!于是我开始寻找别的替代方案,最后让我发现了【硕鼠】这款下载神器。 具体怎么操作呢?很简单,你只要复制一下视频链接,然后按照提示一步步操作就行了! 02:天若OCR —— 个人最喜欢的电脑端文字识别软件 适用群体:经常要图片上的内容转换成文字的你 推荐指数:★★★★★ 这款软件前面有不少朋友都提到了,不过它实在是太好用了,再安利一遍! 日常办公时,要用到文字识别的情况很多!但是: 搜到百度文库的文章无法复制粘贴 pdf 文件复制粘贴之后格式错乱 收到扫描的文件要录入 ……(各种难题啊) 用手机对着屏幕拍,或者一张张上传到网页都太麻烦了。直接用「天若文字识别」电脑客户端,完美满足日常所需,

Create a PDF according to a given format using the iText library

≯℡__Kan透↙ 提交于 2020-04-10 04:09:28
问题 I'm working on small project in java, there I want to fetch the contents from a database and write them into a PDF file. I tried to googling and came up with iText Library. Can anyone guide to create a PDF that looks like the enclosed image PS: I'm pretty new to JAVA.and it's my first java project. 回答1: I've done a quick implementation of most of your use-case. Here's the code: First we define a small class that acts as a single record in the invoice. static class Article{ int SNO; String

iText embedding Color space (ICC Profile) in PDF Images

做~自己de王妃 提交于 2020-04-07 09:04:52
问题 I am using iText-7 java library to generate pdf using below code. (I am adding image to pdf doc) pdf = new PdfDocument(writer); Document document = new Document(pdf); ImageData data = ImageDataFactory.create(imgfilepath); Image img = new Image(data); img.scaleToFit(imageWidth, imageHeight); img.setFixedPosition(1, 0, 0); document.add(img); -Using same Image i have created PDF from acrobat. Problem : (1) When i print above 2 PDFs- 1 created using iText, 2- created using Acrobat - i see quality

iText embedding Color space (ICC Profile) in PDF Images

白昼怎懂夜的黑 提交于 2020-04-07 09:04:09
问题 I am using iText-7 java library to generate pdf using below code. (I am adding image to pdf doc) pdf = new PdfDocument(writer); Document document = new Document(pdf); ImageData data = ImageDataFactory.create(imgfilepath); Image img = new Image(data); img.scaleToFit(imageWidth, imageHeight); img.setFixedPosition(1, 0, 0); document.add(img); -Using same Image i have created PDF from acrobat. Problem : (1) When i print above 2 PDFs- 1 created using iText, 2- created using Acrobat - i see quality

iText embedding Color space (ICC Profile) in PDF Images

前提是你 提交于 2020-04-07 09:03:09
问题 I am using iText-7 java library to generate pdf using below code. (I am adding image to pdf doc) pdf = new PdfDocument(writer); Document document = new Document(pdf); ImageData data = ImageDataFactory.create(imgfilepath); Image img = new Image(data); img.scaleToFit(imageWidth, imageHeight); img.setFixedPosition(1, 0, 0); document.add(img); -Using same Image i have created PDF from acrobat. Problem : (1) When i print above 2 PDFs- 1 created using iText, 2- created using Acrobat - i see quality

“AT least one signature is invalid” error message after removing signature from pdf using itext

给你一囗甜甜゛ 提交于 2020-03-27 02:40:34
问题 I have a digitally signed pdf with multiple signatures. Now I want to remove only one of the signatures. I am using itext for the same. The code is as follows: PdfReader reader = new PdfReader(src_path); PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest_path)); { AcroFields.Item item = stamper.getAcroFields().getFieldItem(fieldname); ClearSignatureDictionary(item.getMerged(0)); ClearSignatureDictionary(item.getWidget(0)); ClearSignatureDictionary(item.getValue(0)); } }

How to make a client receive a copy of a form they filled in, as a PDF in ASP.NET + C#

两盒软妹~` 提交于 2020-03-26 05:31:12
问题 I'm creating a form in ASP.NET and want the customer to receive the PDF copy of the form when they have filled it in and submitted it; i.e. I need to create a PDF copy of the HTML form, with the customer information filled in. I've tried different sources, but many that i have seen are just a set of tables; I haven't seen one that has a custom form with the information that a customer has just filled in. How can I create a PDF from an existing form and a set of customer data? Here is my code

How to split a PDF based on a size limit?

耗尽温柔 提交于 2020-03-06 02:12:06
问题 I have searched many places but unable to find a pretty good solution as such. So what I am trying to achieve is as below: My program will have quite a lot of PDF docs which I will have to send via mail. There is a mail server limitation of 4 MB. So if all the PDFs are less than 4 MB it will be sent as a single mail. Else I will have to create multiple files each less than 4 MB. Now my program works fine for the following cases: 1: Lots of files but each less than 4MB and hence keeping a tab

iText 5 - How to set cells of a table in different sizes using iText 5 in Java

老子叫甜甜 提交于 2020-03-05 01:36:42
问题 I am writing a Java code to generate a PDF template. In the pdf's header section, I have created a pdfTable which has 7 cells including an image cell (Logo), a text field (Id Number) and remaining 5 cells to populate the actual Id Number. In the output, I should get a bigger image cell (representing the Logo) and Id number cells must be smaller in size than the image cell. Example, as in the below image (Expected Result). However when the template is generated, I am unable populate as

Updating annotations of a PDF using a program coded in C#

情到浓时终转凉″ 提交于 2020-03-04 05:18:08
问题 I am able to extract annotations present in a PDF page using iTextSharp. However, I am not able to edit these annotations. My requirement is that among multiple annotations I can search a specific annotation and then edit its content and save the PDF. On the opening of the PDF, the updated version should be displayed. However, I tried using itextsharp , spire and rasteredge but non-of them give any meaningful result. Below is the function made using RasterEdge. static void RasterEdit(string