How To Resize A Pdf Using ITextSharp
Jul 8, 2009
I have a bunch of PDFs that I'm just trying to open, resize the page, and then save. I'm also hoping that the file sizes will shrink significantly doing so. I am using iTextSharp and the resizing works just fine, but the file size is nearly identical, ever so slightly larger in fact. Here's the function I have now:
[Code]...
View 1 Replies
ADVERTISEMENT
Apr 26, 2012
I created so many listviews in my project, that im too lazy to add to each listview a resize event with percentages. Is there any other trick, who just scales the columns so as they are?
View 3 Replies
Jan 10, 2012
I'm starting work updating an UI for one of my company's applications and I'm running into a sticky issue. The parent control contains several panels, each of which can be turned on or off depending on user input.
The final panel in the user control contains another user control which gets resizes according to a toggle switch. Essentially, it "opens" up more information.
While the child control (ChildControl) is docked to Fill inside the parent control (ParentControl), when I add height to ChildControl I can't get ParentControl's height to get updated as well. Currently I'm handling the ChildControl.Layout event in ParentControl but I can't seem to reach that code. To resize ChildControl, I'm calling Me.Height += 200 in ChildControl.vb.
View 1 Replies
Nov 30, 2009
Is it possible to add a password protected pdf using itextsharp?
View 2 Replies
Mar 25, 2009
Is there a way to extract the value for APPEARANCE_NORMAL from each stamp in a PDF using iTextSharp? I know how to find all the Stamp annotations, but I am unsure how to get APPEARANCE_NORMAL.
View 6 Replies
Sep 3, 2009
in my document i am creating 3-4 pdfptables. at design time i dont know the size of the tables. i need to place the 2nd table right after the first, but i dont know the position of the first (i cant calculate it because i dont know how big it is). how do i know where to place the second table?
View 2 Replies
Mar 15, 2011
I have an instance where I have a logo image as part of some artwork..If a user uploads a new logo I have a form field which is larger than the default logo.I then use that form field to position the new image.
The problem is I need to set the background colour of that form field to white so that it covers the old logo in the event that the new image is smaller than the old logo..
what I have done is:foreach (var imageField in imageReplacements)
{
fields.SetFieldProperty(imageField.Key, "bgcolor", iTextSharp.text.Color.WHITE, null);
fields.RegenerateField(imageField.Key);
PdfContentByte overContent = stamper.GetOverContent(imageField.Value.PageNumber);
float[] logoArea = fields.GetFieldPositions(imageField.Key);
[Code]...
The problem with this is that the background colour of the field is set to white and the image then doesn't appear.. i remove the SetFieldProperty and RegenerateField commands and the image replacement works fine.is there a way to set a stacking order on layers?
View 1 Replies
Sep 3, 2009
why my tables are lapping over each other?
Dim datatable As PdfPTable = New PdfPTable(4)
Dim page As Rectangle = document.PageSize
datatable.TotalWidth = page.Width - document.LeftMargin - document.RightMargin
[code]....
even though im decrementing last_pos by the height of the previous table, they still lap over in a weird way like this:
View 1 Replies
Aug 25, 2009
for this line: c.WidthPercentage = 100F
i am getting this error:Error 1'WidthPercentage' is not a member of 'iTextSharp.text.Table'.
here's the entire code. it's taken directly from the tutorial
Imports System
Imports System.Drawing
Imports System.IO
Imports iTextSharp.text
Imports iTextSharp.text.pdf
[Code]...
View 1 Replies
Mar 25, 2009
I need to convert fdf files to pdf in asp.net using vb. I found some code that I'm trying to learn from. What I would like to do is upload the fdf file and then output a pdf to a directory and email it out. The fdf files are coming from a shared linux/php host (using the php fdf functions is all I can do here on this host) that are emailed to a central inbox. I'm going to pick up the files from the inbox and upload them to a win/asp.net box to convert to pdf.The code i found is below.
* Dim pdfFlat As New MemoryStream() * Dim pdfReader As New PdfReader(context.Request.MapPath(pdfFormFileName)) * Dim pdfStamper As New PdfStamper(pdfReader, pdfFlat) * ' bind fields from fdf... * Dim fdfReader As New FdfReader(context.Request.InputStream) * Dim pdfForm As AcroFields = pdfStamper.AcroFields *
[code]...
View 1 Replies
Jun 5, 2011
I want to display the data in the 2 column of PDF using iTextsharp. Like this way e.g.
Q.1 aaaaaa Q.5 eeeeeeeeeee
Q.2 bbbbbb Q.6 fffffffffff
Q.3 cccccc Q.7 ggggggggggg
[code]....
I can done it by using count but it's not working if the question length is min/max . how i can done it manually.
View 4 Replies
Jan 9, 2009
Does anybody know how to create a pdf from a web page using iTextSharp? I've already added the reference to my program, but i'm not clear on how to create a pdf from a web page.
View 1 Replies
Sep 2, 2009
I have created a simple table and i need to position. does anyone have experience with tables in itextsharp? [code] the first table works but the second does not
View 2 Replies
Mar 7, 2009
How to find the text in pdf using itextsharp.
View 1 Replies
Sep 15, 2009
I am getting this unhandled IOException when using itextsharp
Rebuild failed: Error reading string at file pointer 3; Original message: xref subsection not found at file pointer 118
The line of code throwing this error is: Dim inputDoc As New iTextSharp.text.pdf.PdfReader(inputPath)
View 11 Replies
Mar 2, 2012
I have an pdf file, encrypted with a certificate. I want to access to it in order to create a decrypted copy.I have the certificate stored at personal windows certificate store. Is it possible to use this one? How can I access with the pdfReader object?
View 1 Replies
Nov 18, 2011
I am trying to export gridview (HTML Based) to a pdf in asp.net+vb.net (backend). When I click on the Export to PDF button the download window shows, but when you click on open Adobe reader will open but displays the message
" Adobe Reader Could not open 'test[1].pdf' because it is either not a supported file type or because the file has been damaged ( for example, it was sent as an email attachment and wasn't correctly decoded) ".
The coding for export to pdf is same for 5 different reports of which 4 are working fine, as well as export to Excel is also working fine for all 5 reports. Does it have any relation with the itextsharp dll version? (I am using itextsharp version 3.1.1.0)
View 1 Replies
Sep 3, 2009
how do i use pdfptable as a real table (A x B) instead of just (A x A)
declaring it this way gives me just one row:
Dim datatable As PdfPTable = New PdfPTable(4)
how can i declare it so that it has multiple rows and multiple columns?
View 1 Replies
Dec 15, 2009
in vb.net is it possible to get the coordinates of an image like if i do a
document.add (jpeg_image)
x_coordinate = jpeg_image.xcoordinate???????
View 1 Replies
Dec 15, 2009
i need to add a data table right after an image on a PDF in vb.net
[Code]...
i highlighted broccoli, buckwheat, butter, cabbage. these are all part of a data table that is supposed to go after the bottom SEVERE word because the entire thing that you see is one image called jpg2
View 1 Replies
Feb 18, 2009
I am trying to set a radio button in a PDF form using iTextSharp(open to other ways too).
[Code].....
View 3 Replies
Jul 4, 2008
How can I read the hyperlinks in PDF using ItextSharp ??
View 3 Replies
Mar 31, 2010
How can I read PDF content with the itextsharp with the Pdfreader class. My PDF may include Plain text or Images of the text.
View 4 Replies
Aug 25, 2009
There was a post with this topic earlier but the solution was not revealed due to security reasons. Is there a way for me to know the solution.
View 4 Replies
Feb 18, 2011
I'm trying to use a Unicode symbol in my PDF file with iTextSharp.Dim base As BaseFont = BaseFont.CreateFont("C:\WINDOWS\Fonts\WINGDING.TTF", BaseFont.IDENTITY_H, BaseFont.EMBEDDED)Dim wd As Font = New Font(base, 12, Font.NORMAL, BaseColor.BLACK)phrase = New Phrase("q", wd)
View 2 Replies
Mar 26, 2011
all this is my 1st post in this forums My query is that i em using itextsharp to attacted the Signature(Pfx) in the PDF but at the client side its shows me a question mark in the image itself,this is how it looks[URL]..The prb is tht i don't want to show this image (Hejmadi signatures) unless the user has trusted this certificate in order to remove tht queston mark
[Code]...
View 1 Replies
Mar 29, 2010
Is it possible to get What language is set to the PDF for Reading Options?
Example:English or German
View 3 Replies
Apr 15, 2009
We created a template using Adobe LiveCycle Design and in order to make our one field work the way we need it to we had to save it as a dynamic xml form (*.pdf) and according to itext in action you cannot use acrofields with this type of pdf since it uses an xml based architectu
View 3 Replies
Apr 8, 2011
Am having a series of picture to be written to PDF format using "itextsharp.dll" ..., this pictures must be at least two(2) pictures on a page.
View 1 Replies
Mar 21, 2011
When creating a new iTextSharp document how do I specify the page orientation? Using Dim doc As New Document(PageSize.LETTER) creates a letter size document with portrait orientation. I need a letter size document with landscape orientation. How do I set that? Also, does anyone know if the documentation is online? I couldn't find it anywhere on their website.
View 2 Replies