Welcome Guest Search | Active Topics | Sign In | Register

Add AcmTextBox Options
Alex Sh
Posted: Thursday, May 8, 2014 10:08:06 AM
Rank: Newbie
Groups: Member

Joined: 5/8/2014
Posts: 4
Hi,
I need to add to dynamically rendered from html pdf document textbox invisible to user but i cannot find a property to set the visibility of a textbox.
Thanks!
eo_support
Posted: Thursday, May 8, 2014 5:15:00 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

I am not exactly sure what you mean by "invisible". If you are using our HTML to PDF converter to convert HTML to PDF, then you can simply add the following styles in your HTML to hide all input element:

Code: CSS
input { visibility: hidden; }


Once you add this in, all input will be hidden.

Thanks!
Alex Sh
Posted: Sunday, May 11, 2014 4:41:09 AM
Rank: Newbie
Groups: Member

Joined: 5/8/2014
Posts: 4
I do using HTML to PDF converter and then i need to add to the document an acmtextbox that is invisible to end user for use in third-party app. Is there is a way to do that?
Thanks
eo_support
Posted: Sunday, May 11, 2014 10:50:22 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

You need to explain your question in detail and also be more specific with your question. For example, if you want to add AcmTextBox, then you can just add an AcmTextBox. So did you have any problems adding AcmTextBox? If you do, what is that problem? What you have tried? Was there an error message? Our main goal here is to support our product, so we do not take your requirement as is, analyze it and advice on implementation (we can provide that service for a fee but not for free). However if you can be more specific on your question we will be able to help you further.

Thanks!
Alex Sh
Posted: Monday, May 12, 2014 4:27:36 PM
Rank: Newbie
Groups: Member

Joined: 5/8/2014
Posts: 4
Hi,
Sorry if i was unclear i will try harder :)
I am looking for a property that equivalent to css "visibility" but for acmobject.
To be more specific I have html that i convert to pdf with PDF converter.

Code: C#
EO.Pdf.PdfDocument doc = new EO.Pdf.PdfDocument();
EO.Pdf.HtmlToPdf.ConvertHtml(htmlText, doc);


Now i want to add an acmtextbox:

Code: C#
AcmRender render = new AcmRender(doc, new AcmPageLayout(new AcmPadding(0, 0, 0, 0)));
var txt = new AcmTextBox();
render.Render(txt);


The problem is that i want that acmtextbox to be invisible to the user.
In itextsharp i am able to do something like that:

Code: C#
TextField txt = new TextField(pWriter, new iTextSharp.text.Rectangle(310, 32, 370, 70), "mytxt");
txt.Visibility = BaseField.HIDDEN;


itextsharp BaseField.HIDDEN property is equivalent to css

Code: CSS
#mytxt{visibility:hidden}

Do i have something like that in EO.Pdf?

Thanks!
eo_support
Posted: Monday, May 12, 2014 5:20:54 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

I do not believe we have this option. We will look into it and see if we can add it. We will reply again when we have an update.

Thanks!
Alex Sh
Posted: Thursday, May 15, 2014 3:56:24 AM
Rank: Newbie
Groups: Member

Joined: 5/8/2014
Posts: 4
Hi,
This issue is critical for us.
Do you have a time estimation how long it will take?

best regards
eo_support
Posted: Thursday, May 15, 2014 8:48:42 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

I believe we have already implemented this internally. I will see if we can get the build out to you as soon as possible.

Thanks!
eo_support
Posted: Monday, May 19, 2014 12:20:37 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

We have posted new build that supports this. Please see your private message for the download location.

With the new build you can do something like this:

Code: C#
AcmTextBox textBox = new AcmTextBox();

....setting other properties....

//Set "display" to "none"
textBox.Style.Display = AcmDisplay.None;


Here you can set "Display" to "None" or "Hidden". The difference between "None" and "Hidden" is "None" functions as the textbox does not exist at all, where "Hidden" does not render the textbox, but still reserves space for it.

Hope this helps. Please take a look and let us know how it goes.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.