itext


I want to scale the shapes like rectange, circle, line on the page in itextsharp


the issue I am facing is that when I draw large shapes it coordinates goes out from the page. what should I do to scale even large shapes on text sharp?
string filename = string.Format("Report.pdf");
Document doc;
PdfWriter writer;
private void button1_Click(object sender, EventArgs e) {
FileStream fs = new FileStream(filename, FileMode.Create, FileAccess.Write, FileShare.None);
doc = new Document(PageSize.A4.Rotate());
writer = PdfWriter.GetInstance(doc, fs);
doc.Open();
Phrase logo = new Phrase("Plate Properties\n");
logo.Add("\nBreath of Plate (mm)= " + "20");
string url = "https://www.google.com.pk/logos/doodles/2017/earth-day-2017-5650394117046272-s.png";
Image jpg = Image.GetInstance(new Uri(url));
PdfContentByte cb = writer.DirectContent;
cb.Rectangle(85, 85, 1000, 2000);
cb.Stroke();
jpg.ScalePercent(200f);
doc.Add(jpg);
doc.Add(logo);
doc.Close();
}

Related Links

Trying to draw an ellipse annotation and the border on the edges goes thin and thik when i try to roatate pdf itext5
SetSimpleColumn not aligning after 10th line
iText7 insert table in form template
Spacing between paragraphs
Can iText TextExtractionStrategy ignore watermarks in the PDF?
Pdfa's with xfa and iText
Convert pdf page with multiple images to one image
After the end of footer table appear in same page in itextsharp
Convert fillable PDF to fillable html form
Using iText and C# app, in WS 2012 R2, 64 Bits, I got this error, why?
itextsharp and using markup <blockquote>
Itext5, highlight one word in a phrase
Repeated lines in PdfPTable at the end of the page?
How to generate signature using hash string using iTextSharp and c#
iTextSharp automatically shrinking images when end of the page reach
iText - placeholders

Categories

HOME
paypal
system-verilog
json-ld
hana
transparent
specflow
defragmentation
proguard
contact-form-7
octopus-deploy
vuex
qt-installer
maxima
pdo
spring-cloud-config
reduction
google-openid
multiple-columns
os161
qsub
hash-collision
superscript
rowcount
backup-strategies
shapes
google-drive-realtime-api
ocs
nsurlconnection
rhino
openpgp
pox
readfile
active-model-serializers
soundjs
nsexception
paho
php-ews
prototypejs
windows-firewall
goquery
applepayjs
tiddlywiki
rollback
search-box
castle-dynamicproxy
keycode
system.web.ui.webcontrols
hspec
amf
inotifypropertychanged
elastix
inet
proxygen
twgl.js
multinomial
python-winshell
subresource-integrity
rx-groovy
callstack
google-hadoop
hg-git
activity-streams
grunt-contrib-concat
vcl
sortable
ogr2ogr
getimagedata
yahoo-boss-api
sgml
help-viewer
initialization-vector
bignum
nservicebus4
va-list
visual-studio-2003
apache2.2
manage.py
fortran77
objcmongodb
qt4.6
arbor.js
icsharpcode
static-variables
datamember
serp
curljs
posting
mvccontrib-grid
sitemappath
callgrind

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App