|
Rank: Member Groups: Member
Joined: 3/6/2012 Posts: 19
|
Is it mandatory to give output area in HtmlToPdf converter?
My problem is, in output area i have to give RectangleF object which defines area for the html to be plotted by converter. But in case my html exceeds from the limits of RectangleF, it looks ugly.
If i do not give OutputArea then it adds some space at left and right of the converted html. ANy solution you can recommend for this problem would be great.
Thanks Rahul
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
OutputArea is always set either explicitly by you, or by the default value. The default output area adds one inch margins on all four sides.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 3/6/2012 Posts: 19
|
Thanks for the reply.
My problem is I am creating PDF using combination of render method and HtmlToPdf options. I render html at the end of pdf, so i have to calculate the position to render HTML content using formula (10 * 72 - pdfDestination.FitRect.Y1) / 72 + 0.7f;
This gives me the top position but left position is not given correctly. It usually ends up with a margin of 1 inch as you mentioned.
Use of rectangle is not advisable cause the HTML content will not have fixed height. If we mention rectangle for output area and if content crosses then we are assuming that it will create a problem.
So how can we provide a left start position to the html content in PDF without mentioning output area?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You are asking us to teach you how to write code here. There is not a matter of "USUALLY ends up with a margin of 1 inch". If you give it two inches, then it's two inches. If you give it one and a half inches, then it's one and a half inch. If you don't give it anything, then it takes the default value, which is one inch. It's not "usually" or "sometimes" something. The output is 100% pre-determined by your input. Your last question was an obvious logic mistake in your code where you use different page size for different portion of your code. We are not at a position to troubleshoot such coding problem for you. If you are not clear about your own logic, then you need to sort that out. If you are not clear about how our product works, then we can explain that to you. So just let us know which part you are not clear about. We will not analyze your "usually" something problem. You have to know exactly what you are doing first.
You will always use rectangle to define the paper's output region. For any web page, the width is pre-determined, while the height is dynamic. There is no such thing as an open ending width as page doesn't grow horizontally.
We will also need to verify your license in order to continue offer tech support to you. So please PM us your license ID.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 3/6/2012 Posts: 19
|
First of all, I will PM you my license ID soon. But I am very much shocked and aghast by your reply here. This answer is in no way professional and not even an open forum users provide such a rude answer.
You take one word "usually" and provide the whole reply based on that? Did you not understand anything else from entire description? Are you really part of the support team? We write a query with utmost faith in the team that if we have a small doubt it will be cleared soon. That faith is well gone now.
Anyways this will be a very good support example for entire internet community, so i will also create a blog out of this and provide you the link where you can read all the comments and may be if you are really in your sense then you can learn from that.
I was hoping you will read the question and if any doubt you will ask me that doubt specifically. Your reply with so much disrespect and anger was totally unexpected.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
If we have upset you then we sincerely apologize. However we are just making clear you understand what we will do and what we will not do as tech support. We felt it is necessary to clarify our position to you based on your past posts so that you will not have unrealistic expectation about the service you will receive here. In your case, you previous posted a question that is a logic mistake in your code; Now you continue to post questions that are either not clear about your question; or not clear about basic principles (such as web page’s width is always predetermined). Based on those posts we concluded it is necessary for us to point out clearly to you that those are not exactly what we do here and asked you to be very clear about your logic and questions first before requesting help from us.
While we understand there is always a chance that you might be offended when we tell you what we will do and what we will not do for you, or try to point out problems in your post, we want you to understand that we will always try to make our position clear to you whenever we notice there might be a confusion or misunderstanding between us. We do that so that both you and us will be on the same page and if you were to purchase our product, you will know exactly what you are buying. If you believe such straight forward communication is bad for you and determined that would blow your faith away, then we can only wish you good luck elsewhere.
A good relationship goes both ways. While we do understand we may have not chosen the best possible wording to express our positions, we do not believe you have been unfairly treated here. We try to be considerate to our customers but different customers have different preferences. Some customers are offended when you don’t tell them every detail because they believe they deserve to be guided step by step; some customers are offended when you do tell them every detail because they think you are disrespecting them by assuming them not knowing anything. At here as tech support it is not possible for us to accommodate all those. Eventually you earn your own respect instead of demanding it from others. We try to be very consistent with what we offer, to be very straight forward about what we do and what we will not do, to be very responsive with questions and issues. So that’s what our support does here.
If you do not agree with us, you are more than welcome to tell us what you think and we will of course take that into considerations. However if you believe you must retaliate by blogging negatively about us then we will say our relationship ends here and you are welcome to try your luck elsewhere. You are not the first user that makes such threat and nor will be the last. The unfortunately truth is there are always a few unhappy customers, but the absolute majority of our customers speak very high of us. That’s because we work very hard to deliver the best possible products and services to them and firmly stands behind what we offer and we are very confident that most customers will continue to enjoy our products and service.
|
|