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

HTML support in Header Footer for iText 7
iTextSharp - html to pdf greek characters missing
iTextSharp - how to move section header to next page
iText 7 - HTMLWorker and ParseXHtml missing
Wrapping text an image in itext7
How to search the specific keyword in PDF and highlight using itext PDF
iTextSharp ColumnText drawing and height not correct
iTextSharp: Show a TextField only when its character length > 0
itextsharp - Add to a PdfPTable a cell with right-aligned italic text
itextsharp html to pdf - one cell empty table -square box
Getting Caused by: java.lang.NoClassDefFoundError: com/lowagie/text/Document
Manipulate paths, color etc. in iText
Itext : create only the table of content page
What are the parameters in this overload of AddImage in the IText PDF library?
PdfPHeaderCell right align content in text mode
How to add page background color itext 5 without margin space

Categories

HOME
security
erlang
reverse-engineering
bower
label
automated-tests
propertygrid
apiconnect
spring-cloud-contract
dropbox
data-synchronization
data-analysis
simple-injector
multiple-monitors
reduction
flexlm
esql
rails-activerecord
jquery-scrollify
hanami
rhmap
metis
codelite
edge-detection
pcre
websauna
encase
piecewise
picturebox
smart-mobile-studio
shapes
von-neumann
lego
text-files
bigcartel
swagger-editor
axis-labels
fax
fqdn
taskmanager
proof
drawingarea
jenkins-jira-trigger
livescribe
jgraph
bnd
slot
android-bitmap
fedora20
butterknife
cjson
spring-ioc
unsatisfiedlinkerror
mongoskin
spatial-query
uwp-maps
achievements
multilingual-app-toolkit
gmsmapview
django-south
search-regex
aerogear
handlebars.java
approval-tests
servlet-3.0
insertion-sort
drf-nested-routers
subresource-integrity
on-duplicate-key
cpu-cores
jazz
google-plus-one
ctrlp
symfony-2.6
gmaps4rails
libsndfile
adcolony
snmp4j
argument-passing
bsp
android-looper
joox
jquery-tabs
carddav
manage.py
lync-server-2010
mvccontrib
xgettext
symfony-2.0
legacy-code
driving-directions
serp
easygui
exitstatus
svn-hooks
open-graph-beta
task-management
data-entry
usergroups

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