RadFixedDocumentEditor -- change the position of the elements

1 Answer 396 Views
PdfProcessing
n/a
Top achievements
Rank 1
Iron
Iron
Iron
n/a asked on 19 Jan 2022, 05:10 PM

Hey there,

I have tried to use RadFixedDocumentEditor in order to have a continuous flow on the document. Before that, I was using FixedContentEditor and changing the position of the elements with the FixedContentEditor:

Ex: pageEditor.Position.Translate(351, 915) -- where pageEditor is FixedContentEditor instance which takes 2 arguments: offSetX and offSetY.

However, I can't seem to figure out how should I change the position of the elements (blocks, tables etc) when using RadFixedDocumentEditor?

Any advice would be much appreciated.

Thanks ever so much


1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 20 Jan 2022, 09:24 AM

Hello Astig,

The RadFixedDocumentEditor does not have a position. This editor allows you to create a RadFixedDocument in a flow-like manner. You can insert all desired elements one after another. When the document is rendered the size of the elements will be calculated and the offset will be automatically set. 

I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

n/a
Top achievements
Rank 1
Iron
Iron
Iron
commented on 20 Jan 2022, 10:41 AM

Thank you for your prompt answer Dimitar! 

I presume that I can position the elements horizontally using Horizontal alignment or left/right intend.

And also - should I wish to align 2 blocks aside, would that be possible? 

 

Thanks again!

Dimitar
Telerik team
commented on 20 Jan 2022, 12:53 PM

Hi Astig,

Yes, this is supported. To align text add it to a Block and set its alignment. Detailed information is available here: PdfProcessing - Block.

You can use a table to align blocks aside, just add the blocks to the cells. More information is available here: PdfProcessing - Table.

Let me know if I can assist you further.

 
n/a
Top achievements
Rank 1
Iron
Iron
Iron
commented on 20 Jan 2022, 02:03 PM

Thanks Dimitar!
Tags
PdfProcessing
Asked by
n/a
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Dimitar
Telerik team
Share this question
or