Get Text Field Rotation With ITextSharp?

Jun 4, 2009

What I need to do is query an iTextSharp AcroField to check if it is rotated, and if so capture the value of the rotation.So If I have the following field:

Dim af As iTextSharp.text.pdf.AcroFields = stamper.AcroFields
Dim afi As iTextSharp.text.pdf.AcroFields.Item
afi = af.GetFieldItem("fieldName")

What do I need to do to get the rotation (in degrees) of that specific field?

View 1 Replies


ADVERTISEMENT

C# :: ITextSharp - XFA Fill Date/time Field?

Apr 12, 2011

we download a template form, prefill values which will be static, export a XML template
the XML is parsed with a .NET forms app, dynamic values are addedthe resulting XML needs to be imported back into the PDF templateAll goes well using the MergeXfaData method oniTextSharp, however for some reason, date/time fields are not being filled in (textfields and checkboxes work ok). Cannot figure out why. Searching through forums I discovered someone saying XFA only works for textfields. Why is this and how to work around?

View 1 Replies

Excel - Code In VBA And Recording A Macro - Input A Values For The X Axis Rotation And The Y Axis Rotation

Sep 16, 2009

I am having some major problems with the code in VBA and recording a macro didn't get me anywhere nor is the VBA help file. I have to have it so that I can input a values for the x axis rotation and the y axis rotation so that my 3d surface graph will rotate whatever values I input, the 3d surface graph will rotate those degrees. I also have to have a method for having the default rotation. I was also wondering how to put scroll bars for the x and y rotation. The only other thing I am having trouble with is having an input to check box for right angle axes. So far I have two cells for entering the x rotation value and the y rotation value. I also already have my 3d surface graph.

View 3 Replies

Find The Text Using Itextsharp?

Mar 7, 2009

How to find the text in pdf using itextsharp.

View 1 Replies

Add Text To A Page On An Existing Pdf With Itextsharp?

Feb 4, 2011

I have googled and searched and I am currently unable to work out how I can achieve this.I want to open an existing multipag pdf and append with text absolutely positioned on specific pages before outputting the appended pdfI am sure I need to use the a pdf stamper but I am a little confused and am not confident in readin c# examples

View 3 Replies

C# - ITextSharp Hides Text When Write?

Jul 19, 2011

I am inserting text in existing PDF file using iTextSharp Library, some times if any image in the position where i writing text in PDF page, it keep hides the written text, how to write text on the existing image.

Dim iNumOfPages As Integer = 0, iFile As Integer = 0, iRotation As Integer
Dim objPdfReader As PdfReader
Dim objDoc As Document = Nothing

[Code].....

View 1 Replies

VS 2008 ITextSharp :: Search For Text, Get Location?

Dec 28, 2009

how to search for a word or string in a PDF file & then get it's x/y position?

View 4 Replies

.net - Itextsharp: Detecting If Text / Images Are Not Fitting On Page?

Dec 21, 2009

i am generating a report in vb.net using itextsharp. sometimes the entire report does not fit on one page and i need to know when itextsharp is adding a page to the document.

View 1 Replies

ITextSharp Adding Background Color To Watermark Text

Dec 29, 2011

I am adding watermark text to PDFs in a class library I have created. The code I posted below works fine, however the watermark is sometimes difficult to read because it overlays with content on the PDF. How would I go about adding a white background color around the watermark text? I basically would like the watermark text to be surrounded inside a white rectangle the size of the text.

[Code]...

View 1 Replies

Insert Text To Rich Text Field At Text Cursor?

Mar 28, 2010

I have a question, how would i have a button, then when you click it, it puts the text at the text cursor in the RTF?

View 5 Replies

Axis Of Rotation In Vb?

Jan 29, 2011

I have created some 3d models(VB) for display in a WPF 3d Viewport and would like to rotate them. I would like to rotate them about an axis of rotation defined by a line through two 3d points. All the examples seem to rotate about one of X Y or Z axes and are not helpful for a more general approach. The angle of rotation is easily found. My maths is a bit rusty now so is there a function that would calculate the axis easily ?

View 2 Replies

Bitmap Rotation Using GDI+

Dec 26, 2009

explain how Graphics.RotateTransform is working?

[Code]...

View 6 Replies

3D Object Rotation In 2008?

May 19, 2009

I'm developing a sun shading analysis tool, and part of the analysis involves rotating a house (modelled as a cube consisting of 8 points) by the solar azimuth and solar altitude angles. The reason for this is to determine if the wall in question is facing the sun, and if so I run a shading analysis using a scanline algorithm to determine the percentage of wall plane that is in shade from a tree in the yard (this is modeled using overlapping 2D polygons). The purpose of the rotation and tilt of the object is so that the wall plane is directly perpendicular to the sun, so that the analysis can be done in 2D as opposed to 3D.

I first rotate each point of the house (which is stored in an array) through the azimuth, and then tilt it up through the solar altitude angle. I have set up my 3D coordinate system using the standard right-hand rule for orientation of the x,y,z axes. I'm using a basic rotation matrix as follows:For the azimuth, I am rotating around the z-axis, so I am using the following matrix transformation.
[x',y'] = [x*cos(azimuth) - y*sin(azimuth) , x*sin(azimuth) + y cos(azimuth)]For the altitude, I am rotating the object about the x-axis to tilt it up. I use the initial z-coordinate and the transformed y'-coordinate for the altitude tilt calculation.Each point, when completely rotated and tilted, will have a distinct set of coordinates: [x', y'', z'].Individually, the rotation and tilt work fine. But when I try to do them consecutively, I run into problems.

View 4 Replies

Change Rotation Of A PDF Document?

May 3, 2012

I am first time working on PDF documents.I was searching on Rotation of a PDF page. I got some code samples regarding rotations by 90,180,270,360 degrees.

But my problem is that if there is a very small rotation required of the order of few degrees .. Is there any way that we can specify an angle using a slider bar or use the mouse to click and rotate the PDF page...

View 3 Replies

Does Not Keep Track Of The Actual Rotation

Apr 1, 2011

I have a screen full of puzzle peices they are all rotated at different angles (90,180,270). is there a way to track the peices rotation? I was thinking of using a 2d array to store there rotation. however, I am using this code to rotate the peices:

[Code]...

View 6 Replies

Get The Center Point Of A Rotation?

Jan 24, 2010

i'm developing a simple 2d animation program. my task is to get the center point of a rotation, for example: at the frame 0 there is a rectangle at x,y coordinates and with 0° of rotation at the frame 10 there is the same rectangle, translated and rotated what is the center point around which the rotation occurred? This is not really a question about programming, i know, rather than a problem of geometry.

View 1 Replies

Rotate Image Like 3d Rotation?

May 12, 2012

how to rotate image like 3d rotation?

View 2 Replies

C++ - Direction Of Shortest Rotation Between Two Vectors

Jun 13, 2012

my question is regarding working out the direction of the smallest angle between two vectors in 2D. I am making a game in C++ where one of the obstacles is a heat seeking missile launcher. I have it working by calculating the vector between the target and bullet, normalising the vector and then multiplying it by its speed. However, I am now coming back to this class to make it better. Instead of instantly locking onto the player I want it to only do so only when the bullets vector is within a certain angle (the angle between the bullets vector and the vector bulletloc->target). Otherwise I want it to slowly pan towards the target by a degrees thus giving the player enough space to avoid it. I have done all this (in a vb.net project so i could simplify the problem, work it out then re write in in C++). However the bullet always rotates clockwise towards the target even if the quickest route would be counter clockwise. So the problem is working out the direction to apply the rotation in so the smallest angle is covered. Here is my code so you can try and see what I am describing:

Function Rotate(ByVal a As Double, ByVal tp As Point, ByVal cp As Point, ByVal cv As Point)
'params a = angle, tp = target point, cp = current point, cv = current vector of bullet'

[Code]...

I had was to work out the bearing of the two vectors and if the difference is greater than 180 degrees, rotate clockwise otherwise rotate counter clockwise

View 1 Replies

DirectX.Direct3D Rotation And Textures?

Mar 12, 2011

SI like doing random things like 3D objects inside a windows form. With that said, I'm creating an application that will, eventually, write the code for me, after I do it myself visually.If you run the app it will make some more sense I guess.Now, to rotate the cubes, I'm using

.Transform.World = Matrix.RotationYawPitchRoll(CSng(CubeRx(1) / 10), CSng(-CubeRy(1) / 10), CSng(CubeRz(1) / 10))

now I do not want the world to rotate, just my individual cubes.Here's an example of me referring to my cube in action

If howmanycubes >= 1 Then
' vb2 = New VertexBuffer(GetType(CustomVertex.PositionNormalColored), 36, d, Usage.Dynamic And Usage.WriteOnly, CustomVertex.PositionColored.Format, Pool.Default)

[code]....

how to apply textures to the cube.instructions:When running the program, type in values on right side and click create cube.before you click create cube again, those same text boxes will adjust your current cube.Then when you click create new, it places another cube ontop of your current cube, so you'll need to give it new values.Not much validation is going on so some bad values will cause crashes.

View 1 Replies

Custom User Control Graphics Rotation?

May 31, 2010

I'm trying to build a dial control as a custom user control in VB.NET. I'm using VS2008.so far I have managed to rotate image using graphics.rotatetransform . however, this rotate everything. Now I have a Bitmap for the dial which should stay stable and another Bitmap for the needle which I need to rotate.so far i've tried this:

Dim gL As Graphics = Graphics.FromImage(bmpLongNeedle)
gL.TranslateTransform(bmpLongNeedle.Width / 2, bmpLongNeedle.Height * 0.74)
gL.RotateTransform(angleLongNeedle)[code].....

As I understand it, the image of the needle should be rotated at angle "angleLongNeedle" although i'm placing the rotated image at 0,0. However, the result is that the Needle doesn't get drawn on the control.

View 2 Replies

Extract Transform And Rotation Matrices From Homography?

Sep 12, 2011

I have 2 consecutive images from a camera and I want to estimate the change in camera pose:

I calculate the optical flow:

Const MAXFEATURES As Integer = 100
imgA = New Image(Of [Structure].Bgr, Byte)("pic1.bmp")
imgB = New Image(Of [Structure].Bgr, Byte)("pic2.bmp")
grayA = imgA.Convert(Of Gray, Byte)()

[Code]...

How do I calculate the new position and lookat?

If I'm doing this all wrong or if there's a better method,

View 1 Replies

Send Text To Browser Text Field

Jan 13, 2009

i want to fill up the userID and password fields of the yahoo mail login page with the click of a button on the form but just cant get it right.[code]it just skips the yahooID field and fills out the password field. what is wrong or is there a better way of doing it?

View 1 Replies

Text Field Parser/ Text Remover?

Nov 10, 2009

BTW I am using VB 2008!

View 6 Replies

Find Shift And Rotation Between Same Two Images Using Programming Languages C++ Or C#?

Sep 1, 2009

How to find shift and rotation between same two images using programming languages vb.net or C++ or C#?

View 5 Replies

Applying Both A Rotation And Color Adjustment To A GDI DeviceContext Causes The Colours To Be Reset?

Sep 1, 2011

I am using API calls to transform a Bitmap object. I have various physical transformations (rotation, flipping, scaling, displacement) as well as some colour adjustments (inversion, brightness and contrast)Everything works fine except for when I use the rotation or shear transformations in combination with the colour adjustment. In that case the colours revert to the original image.The interesting thing about this problem is that it seems to be dependent on the off-diagonal factors (eM12 and eM21 below) in the XForm matrix. For example, here is the rotation matrix:

Public Sub RotateClockwise(Radians As Single)
With XFormMatrix
.eM11 = Cos(Radians)[code]....

is there some way I can use both SetWorldTransform and SetColorAdjustment when using non-zero values for the off-diagonal factors in my XForm transformation?

View 1 Replies

Game Programming :: Screen Rotation Handling With Compact Framework

Oct 4, 2008

I am developing a game in compact framework. In Mobile Devices there is a button that Rotates the screen by 90 degrees so you can hold the mobile device the way that suits you. The problem is that i want to handle that in my game, so if i see that the screen has rotated the game will pause.

[Code]...

View 2 Replies

Asp.net - Value Of Type 'System.Collections.ArrayList' Cannot Be Converted To 'System.Collections.Generic.List(Of ITextSharp.text.IElement)'

Sep 21, 2011

I'm having a problem with this code in the highlighted line(*); getting the error in the heading.

Dim htmlarraylist As New List(Of iTextSharp.text.IElement)
htmlarraylist = *HTMLWorker.ParseToList(New StreamReader(tempFile), New StyleSheet())*

[Code].....

View 2 Replies

.net - Add New Field To Text File And Add Value?

Jun 20, 2012

I have two text files with various columns, each column is separated by a tab (" "). What I'm trying to do is the following:-If the values in text file 2 column 1 does not contain any value in text file 1 column 1 then add that field to text file 2 and add a 1 to the second column, like so

String 1 If the value in text file 2 column 1 already appears in text file 1 columns 1 then just add +1 to the value, so if the above value is already in Text File 1 Column 1 and Text File 2 Column 1 then it would appear as.

String 2 And if it was to happen again then

String 3 and so on.I have the following coding so far.

Dim lines1 As New List(Of String)(IO.File.ReadAllLines("File1"))
Dim lines2 As New List(Of String)(IO.File.ReadAllLines("File2"))
IO.File.WriteAllLines("File2", lines1.ToArray) & +1)

[code]....

I use the above coding, but it removes the second column?

View 1 Replies

Do Nothing If A Text Field Is Less Then X Characters?

Feb 23, 2011

Possibly a simple question, but I want to be able to "do nothing" if a value in a text box is less then 3 characters[code]...

View 5 Replies

How To Filter Text Field

Dec 2, 2009

I'm trying to simply prove here that this simple function isn't good enough to prevent every sql injection in the world:[code]I know its not secure, because of googling and looking up other questions on url...[code]I then coppied a Chr(8) from the clipboard and replaced the Chr(8) in the textbox with the clipboard contents and still a no-go.It puts the whole string directly into the field w/o problems.I'm using MS SQL Server 2005, and VB .NET 2005.the Text1 field in the database is a Varchar(600) field (don't ask my why its not MAX, its pointless, i know)There are certain triggers on the table that would prevent a mass update such as this and throw some errors if the injection actually worked right.I know parametrized queries are the way to go here and I'm not looking for answers like "well i dunno why it doesn't work, but parametrized queries are the way to go".I'm looking for the ability to prove that our software is broken and that we need to rewrite it using better principles.how to better filter your text fields, the answer is DON'T! Use the parameters! they are much better, safer, and easier!

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved