Stamp rotates on placement...

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Stamp rotates on placement...

Post by lidds »

For some reason stamps are rotated on placement when using the below code. You are able to reproduce this in your FullDemo application, by doing the following:

1. Open the attached document, which does have a page rotation of 270.
2. Draw some annotation on this and create a stamp from selection.
3. Create a new PDF at A1 size and Landscape.
4. Draw some annotation on this document and create a stamp from selection.
5. Open the attached document again and place both stamps, this works as it should and NO stamp rotation is added.
6. Add the below code.
7. Open the attached document again and place both stamps. You will notice that the stamp created from the blank landscape document is now rotated??

Code: Select all

			ElseIf e.nEventID = nIDS(CInt(IDS.e_annots_inserted)) Then
                Dim annotsEvent As PDFXEdit.IPXV_AnnotsEvent = DirectCast(e.pEvent, PDFXEdit.IPXV_AnnotsEvent)
                If annotsEvent IsNot Nothing Then
                    Dim pSInt As PDFXEdit.IPXS_Inst = DirectCast(Me.docPreview.Inst.GetExtension("PXS"), PDFXEdit.IPXS_Inst)
                    Dim nID As Integer = Me.docPreview.Inst.Str2ID("op.annots.setProps", False)

                    Dim Op As PDFXEdit.IOperation = Me.docPreview.Inst.CreateOp(nID)
                    Dim input As PDFXEdit.ICabNode = Op.Params.Root("Input")
                    Dim annotsCnt As UInteger = annotsEvent.Items.Count
                    Dim annot As PDFXEdit.IPXC_Annotation = Nothing
					
                    For i As UInteger = 0 To annotsCnt - 1
                        annot = annotsEvent.Items(i)
                        input.Add().v = annot
                    Next

                    If input.Count = 0 Then
                        Return
                    End If

                    Dim options As PDFXEdit.ICabNode = Op.Params.Root("Options")
                    Try
                        options("Subject").v = "Process"
                        options("Author").v = "Bob Jones"
                        options("Mask").v = PXV_OpModifyAnnotMaskFlags.OpModifyAnnot_Author + PXV_OpModifyAnnotMaskFlags.OpModifyAnnot_Subject						
                        Op.Do()
                    Catch ex As Exception
                        Console.WriteLine(convertErr(ex))
                    End Try
                End If
Not sure why this is happening, any ideas?

Thanks

Simon
Attachments
ISO_001.pdf
(44.02 KiB) Downloaded 83 times
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Stamp rotates on placement...

Post by Sasha - Tracker Dev Team »

Hello Simon,

I did not manage to reproduce this one. Be sure that you have not specified the PXV_OpModifyAnnotMaskFlags.OpModifyAnnot_Rotation flag anywhere.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Stamp rotates on placement...

Post by lidds »

Alex,

I am not using the annotation rotate flag anywhere.

I have attached my source code and a video that illustrates the issue.

Thanks

Simon
Attachments
Video.zip
(3.25 MiB) Downloaded 69 times
PDFXChangeDemo.zip
(592.09 KiB) Downloaded 63 times
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Stamp rotates on placement...

Post by lidds »

Alex,

Is there any update on this issue?

Thanks

Simon
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Stamp rotates on placement...

Post by lidds »

Alex,

I was just wondering if you managed to reproduce this issue at your end?

And if so if you have a solution?

Thanks

Simon
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Stamp rotates on placement...

Post by Sasha - Tracker Dev Team »

Hello Simon,

The part with the region area was helpful - I think that the problem lies there and I managed to reproduce it in the End-User Editor. We will investigate this.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Stamp rotates on placement...

Post by lidds »

Alex,

This issue seems to be fixed on the new build 325. Please can you confirm at your end as well

Thanks

Simon
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Stamp rotates on placement...

Post by Sasha - Tracker Dev Team »

Hello Simon,

Yes, I cannot reproduce this either - seems it was fixed.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply