使用c#Itextsharp更改现有的pdf背景颜色 [英] change existing pdf background color using c# Itextsharp

查看:425
本文介绍了使用c#Itextsharp更改现有的pdf背景颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我有一个pdf。我需要改变背景颜色。如果你想看pdf,我会发送。请帮帮我。









问候,

Narasimha

Hello there,

I have one pdf. i need to change background color. if you want to see the pdf, i will send. Please help me.




Regards,
Narasimha

推荐答案

您好,



有一个选项可以设置尺寸和颜色PDF,如果您使用
Hi,

There is an option to set Size and color ofr the PDF, if you use the
"ITextSharp"







var pageSize = new Rectangle(216, 720);
pageSize.BackgroundColor(new Color(0, 0, 0));
Document document = new Document(pageSize);





谢谢!



Thanks!


这篇关于使用c#Itextsharp更改现有的pdf背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆