View Issue Details

IDProjectCategoryView StatusLast Update
0002972TechDraw(No Category)public2017-04-17 18:21
ReportersankeyAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformLinuxOSUbuntuOS Version16.04
Summary0002972: TechDraw PDF export from Python can only make PDFs of a Page in foreground
DescriptionWith Python it is only possible to export TechDraw Pages which are open and in the foreground.

Steps To ReproduceExperiment 1:

1. Create two TechDraw pages and draw things in them to identify them.
2. View the first page ("Page"). It should be in the foreground.
3. Open the python console and try to export the second page ("Page001") as PDF:

obj = FreeCAD.ActiveDocument.getObject("Page001")
FreeCADGui.export([obj], u"/tmp/Page001.pdf")

4. Observe that the exported PDF is in fact a rendering of the first page ("Page")

Experiment 2:

1. Continue from the same document as Experiment 1.
2. Close all TechDraw pages.
3. Try again to export "Page001" as PDF.
4. Observe that the exported PDF is completely blank!
Additional InformationOS: Ubuntu 16.04.1 LTS
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.17.10476 (Git)
Build type: None
Branch: master
Hash: b6150097e9cf4d7b0f5ad71f2f8750f2e7aac0d9
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Tagspython

Relationships

related to 0002971 confirmedwandererfan hiding foreground TechDraw page from Python causes segfault 

Activities

2017-03-18 21:28sankeyNew Issue
2017-03-20 12:32Kunda1Project@4@ => TechDraw
2017-03-20 12:33Kunda1Relationship addedrelated to 0002971

Kunda1

2017-04-15 12:56

manager   ~0008818

Forum thread: https://forum.freecadweb.org/viewtopic.php?f=35&t=21855
2017-04-15 12:57Kunda1Tag Attached: python
2017-04-16 08:46JriegelCategoryBug => (No Category)

Kunda1

2017-04-17 18:21

manager   ~0008846

@Jriegel why the category change?

Issue History

Date Modified Username Field Change
2017-03-18 21:28 sankey New Issue
2017-03-20 12:32 Kunda1 Project @4@ => TechDraw
2017-03-20 12:33 Kunda1 Relationship added related to 0002971
2017-04-15 12:56 Kunda1 Note Added: 0008818
2017-04-15 12:57 Kunda1 Tag Attached: python
2017-04-16 08:46 Jriegel Category Bug => (No Category)
2017-04-17 18:21 Kunda1 Note Added: 0008846