Search found 170 matches

by rsb
Fri Jun 09, 2023 9:10 pm
Forum: wxCode
Topic: Mirrored text not displayed using Adobe Acrobat
Replies: 8
Views: 5169

Re: Mirrored text not displayed using Adobe Acrobat

Can I ask what application you use to display the PDF document and how do you invoke the application? Are you invoking like we do (below) or some other method? "C:\Program Files\Adobe\Acrobat DC\Acrobat\Acrobat.exe" "B:\190313_test-3d-lib-test-pth-comps\pantheon\BOARD.pdf" Thanks.
by rsb
Fri Jun 09, 2023 1:17 pm
Forum: wxCode
Topic: Mirrored text not displayed using Adobe Acrobat
Replies: 8
Views: 5169

Re: Mirrored text not displayed using Adobe Acrobat

We're not using any of the above settings.
by rsb
Wed Jun 07, 2023 3:48 pm
Forum: wxCode
Topic: Mirrored text not displayed using Adobe Acrobat
Replies: 8
Views: 5169

Re: Mirrored text not displayed using Adobe Acrobat

Hello, Attached is a much smaller drawing with one mirrored text string and one non-mirrored text string. The smaller text is reference text and is not mirrored. The mirrored text is on the bottom of the board. The drawing on the screen (first drawing) is correct. The second drawing is displayed in ...
by rsb
Tue Jun 06, 2023 4:38 pm
Forum: wxCode
Topic: Mirrored text not displayed using Adobe Acrobat
Replies: 8
Views: 5169

Mirrored text not displayed using Adobe Acrobat

Hello, After creating a PDF file using the PDFDocument library from inside our application, we display the file using Adobe Acrobat. The command we are using is: "C:\Program Files\Adobe\Acrobat DC\Acrobat\Acrobat.exe" "B:\190313_test-3d-lib-test-pth-comps\pantheon\BOARD.pdf" We h...
by rsb
Wed Nov 24, 2021 9:43 pm
Forum: Platform Related Issues
Topic: Creating Open Cascade Technology Xw_Window
Replies: 3
Views: 1506

Re: Creating Open Cascade Technology Xw_Window

Hi, Found a solution. Needed to get the ID of the window using the GtkWidget. Thanks for your help. It set me on the right track. #ifdef _LINUX_TARGET Window Xwin = gdk_x11_drawable_get_xid(gtk_widget_get_window(handle)); m_Window = new Xw_Window(displayConnection, (Aspect_Drawable) Xwin); #else m_W...
by rsb
Mon Nov 22, 2021 8:14 pm
Forum: Platform Related Issues
Topic: Creating Open Cascade Technology Xw_Window
Replies: 3
Views: 1506

Creating Open Cascade Technology Xw_Window

Hello, Has there been any work done with Open Cascade Technology libraries? We're using OCCT to display 3D models. It works fine on Windows but it's crashing on Linux in the Xw_Window constructor. (See below). Just wondering if anyone has tried to do something like this. I'm not having any success a...
by rsb
Tue Sep 08, 2020 1:26 pm
Forum: wxCode
Topic: wxPdfDocument: Plotting a Rotated Rectangle
Replies: 20
Views: 21168

Re: wxPdfDocument: Plotting a Rotated Rectangle

m_scaleX and m_scaleY are both equal to 1.0.
by rsb
Mon Sep 07, 2020 10:13 pm
Forum: wxCode
Topic: wxPdfDocument: Plotting a Rotated Rectangle
Replies: 20
Views: 21168

Re: wxPdfDocument: Plotting a Rotated Rectangle

This is better, the rectangles display but they are offset down and to the left slightly. See second picture.

Also, In another design, we are displaying in color and the color turns to black and white at some point.
Looks like something is switching it off.

Screen Display
Screen Display
ScreenRR.PNG (9.09 KiB) Viewed 10383 times
Adobe PDF from WxPdfDocument
Adobe PDF from WxPdfDocument
wxPDF_RR.PNG (10.47 KiB) Viewed 10383 times
Thanks.
by rsb
Mon Sep 07, 2020 2:16 pm
Forum: wxCode
Topic: wxPdfDocument: Plotting a Rotated Rectangle
Replies: 20
Views: 21168

Re: wxPdfDocument: Plotting a Rotated Rectangle

I'm sorry Utelle, I got the PPI wrong. The screen DC returns 96, the wxPdfDC returns 1200.
GetSize() returns x: 13,200 and y: 10,200
by rsb
Sat Sep 05, 2020 9:59 pm
Forum: wxCode
Topic: wxPdfDocument: Plotting a Rotated Rectangle
Replies: 20
Views: 21168

Re: wxPdfDocument: Plotting a Rotated Rectangle

The origin is specified in display units. I'm seeing values of x: 6591 and y: 5946 and the rotation is in radians (5.49778). The origin is the center of the rectangle. mat.Translate(origin_position.x_coord, origin_position.y_coord); mat.Rotate(radians) ; The PPI is 96 in the x and y direction, using...
by rsb
Fri Sep 04, 2020 11:34 pm
Forum: wxCode
Topic: wxPdfDocument: Plotting a Rotated Rectangle
Replies: 20
Views: 21168

Re: wxPdfDocument: Plotting a Rotated Rectangle

We're using wxMM_TEXT.

Thanks.
by rsb
Fri Sep 04, 2020 6:50 pm
Forum: wxCode
Topic: wxPdfDocument: Plotting a Rotated Rectangle
Replies: 20
Views: 21168

Re: wxPdfDocument: Plotting a Rotated Rectangle

Okay, I've added a screen shot of two rectangles, one rotated and one not as well
as two PDF files. One output from our GDI routines (TEST_GDI.pdf) and the other
from the wxPdfDoc library (TEST_PDF.pdf). Maybe it will shed some light on what is wrong.
Thanks.
by rsb
Fri Sep 04, 2020 4:11 pm
Forum: wxCode
Topic: wxPdfDocument: Plotting a Rotated Rectangle
Replies: 20
Views: 21168

Re: wxPdfDocument: Plotting a Rotated Rectangle

Hi, I was using wxWidgets 3.1.0, then upgraded to 3.1.4 but still don't see anything. I'm running in debug and stepped into the wxpdfdoc code and I do see the new functions you added. It looks fine on a wxWidgets panel so I assume the pen and brush are set correctly. I also added wxUSE_DC_TRANSFORM_...
by rsb
Thu Sep 03, 2020 7:37 pm
Forum: wxCode
Topic: wxPdfDocument: Plotting a Rotated Rectangle
Replies: 20
Views: 21168

Re: wxPdfDocument: Plotting a Rotated Rectangle

Hi Utelle, Thanks for updating, but does not seem to be working unless I'm doing something wrong. I see the new functions so I believe I built it correctly but no output at all. Rounded rectangles at 0 degree rotation display correctly. Below is the code I'm using. Thanks. wxAffineMatrix2D mat = dc-...
by rsb
Tue Jul 14, 2020 3:45 pm
Forum: wxCode
Topic: wxPdfDocument: Plotting a Rotated Rectangle
Replies: 20
Views: 21168

wxPdfDocument: Plotting a Rotated Rectangle

Hello, In wxWidgets, we're using the wxAffineMatrix2D class to display a rotated rectangle. Below is a small sample of the code we use. This code works great on a panel but when we use the wxPdfDC class, the rectangle disappears. Is this the correct way to display a rotated rectangle in this library...