ITEXT: edit Content in pdf files - itext

is there a opportunity to edit content in pdf-dokument.
I don't want to print content on the pdf!
My idea:
I have a table in the pdf an want do edit the content of cell one.
Thanks for helping.

Related

EVOpdf generates empty pdf page when exporting

Currently I'm working on a PDF export. I want to add an bottom margin to my pdf, but this results in a empty pdf page. The first PDF page has enough room for all of the content but it still produces a blank page. When I remove the bottom margin the blank page disappears but it can happen when I have more than 2 pdf pages it still produces an extra empty PDF between the 2 pages. I don't know why this is happening.
Anybody has any idea? :)
Thanks,
Mark

FPDP useTemplate does not copy the buttons (forms)

I am using the useTemplate method of FPDF to create a PDF with lesser pages than the original file. Each page has 4 Form field buttons but these buttons are not copied over to the new PDF file.
Is this achievable with FPDF?
Kind regards,
Baran

iText move to next page

I am using itext to generate pdf files with images and with some description for that image.
I want to print one image and description of that image in one page.
For next image want to print in next page.By using itext how i can move to next page ?
Lot of way to do that. Simply what i understand from your question how to generate a new page in a Pdf Document. Algo will be like this
for each image{
/*manipulation logic for image and text goes here */
document.newPage();
}
Do a checking for last time loop is iterated otherwise it will create additional blank page.

iText - how to move down the current contents in a pdf

I have a requirement to add few lines at the top of an existing PDF.
I have done this using a PdfReader and a PdfStamper.
In order to have more space in the page header area, i need to move down the current contents by 1 or 2 lines.
Below is from the forum. but it doesn't solve the issue.
How to insert content in the middle of a page in a PDF using IText
Any suggestions?
-i can not upload the pdf or the image of the pdf because am a new user
Do I interpret your question correctly if I assume that you really want to move down everything on the page and add some lines above?
You can do that by changing the media box (and crop box and what other boxes might be explicitly defined for your page) and then add the few lines on top the same way you already do it now.
You can access those boxes in the respective page dictionary which you can retrieve via the PdfReader. Look up the PDF specification for details on those boxes.
Or do I interpret you incorrectly and you only want to move down some text while keeping existing headers and footers in place? In that case Alexis' answer to the other question you refer to still holds.

How to upload contents of a file to a UITextView?

I have about twenty UITextViews and corresponding .txt files. What I want is to make each UITextView take the contents of the corresponding file and display it.
Moreover, the text is formatted and it contains some formulas (copy/pasted from Grapher). I've heard about displaying formatted text in UIWebView, but I haven't found a clear explanation anywhere.
Thanks in advance!
Text files normally don't contain formatted text.
If by "formatted" you mean "html" then yes, you will want to use UIWebView. Basically you will convert the text to an HTML document, and then use the web view to display that document. There are several example projects available from Apple that show you how to use UIWebView.
Displaying formula in a UITextView will be difficult as the character rules for formula are completely different from language text. You could generate HTML to display it that but that is difficult as well.
I think your best bet would be to draw the formula to an image and then display the image. That is the traditional way to handle the display of formula.