[Libreoffice-bugs] [Bug 150600] MaxImageResolution is ignored in macro

2023-05-21 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=150600

--- Comment #6 from Mike Kaganski  ---
So, the issue is that macro recorder creates non-working code? The relevant
step is #1 from comment 0.

If the recorder generates these Array(Array(...)) for FilterData, it is
definitely a bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 150600] MaxImageResolution is ignored in macro

2023-05-21 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=150600

--- Comment #5 from dainius.mazu...@gmail.com ---
Aš I Remember the problem is that two macros, generated by macro recorder are
not working as expected. Not using libre extensively anymore, but will try to
recheck original usage scenario.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 150600] MaxImageResolution is ignored in macro

2023-05-21 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=150600

--- Comment #4 from Mike Kaganski  ---
(In reply to Mike Kaganski from comment #2)
> Why do you expect that you can pass an array of arrays as args to
> executeDispatch?

Sorry for a thinko; what I meant was that you need to prepare an array of
PropertyValue as *FilterData*.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 150600] MaxImageResolution is ignored in macro

2023-05-21 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=150600

--- Comment #3 from Mike Kaganski  ---
For comparison, this works fine:


function PropertyValue(n, v)
  dim result as new com.sun.star.beans.PropertyValue
  result.Name = n
  result.Value = v
  PropertyValue = result
end function

sub Main2
rem --
rem define variables
dim document   as object
dim dispatcher as object
rem --
rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

rem --
args1 = Array(PropertyValue("URL", "file:///D:/150.pdf"),_
  PropertyValue("FilterName", "writer_pdf_Export"),_
  PropertyValue("FilterData",
Array(PropertyValue("UseLosslessCompression", false),_
PropertyValue("Quality", 87,),_
   
PropertyValue("ReduceImageResolution", true),_
   
PropertyValue("MaxImageResolution", 150),_
PropertyValue("UseTaggedPDF",
false),_
   
PropertyValue("SelectPdfVersion", 0),_
   
PropertyValue("PDFUACompliance", false),_
PropertyValue("ExportNotes",
false),_
   
PropertyValue("ViewPDFAfterExport", true),_
   
PropertyValue("ExportBookmarks", false),_
   
PropertyValue("OpenBookmarkLevels", -1),_
   
PropertyValue("UseTransitionEffects", true),_
   
PropertyValue("IsSkipEmptyPages", true),_
   
PropertyValue("ExportPlaceholders", false),_
PropertyValue("IsAddStream",
false),_
   
PropertyValue("ExportFormFields", false),_
PropertyValue("FormsType", 0),_
   
PropertyValue("AllowDuplicateFieldNames", false),_
   
PropertyValue("HideViewerToolbar", false),_
   
PropertyValue("HideViewerMenubar", false),_
   
PropertyValue("HideViewerWindowControls", false),_
   
PropertyValue("ResizeWindowToInitialPage", false),_
PropertyValue("CenterWindow",
false),_
   
PropertyValue("OpenInFullScreenMode", false),_
   
PropertyValue("DisplayPDFDocumentTitle", true),_
PropertyValue("InitialView",
0),_
PropertyValue("Magnification",
1),_
PropertyValue("Zoom", 100),_
PropertyValue("PageLayout",
2),_
   
PropertyValue("FirstPageOnLeft", false),_
PropertyValue("InitialPage",
1),_
PropertyValue("Printing", 2),_
PropertyValue("Changes", 4),_
   
PropertyValue("EnableCopyingOfContent", true),_
   
PropertyValue("EnableTextAccessForAccessibilityTools", true),_
   
PropertyValue("ExportLinksRelativeFsys", true),_
   
PropertyValue("PDFViewSelection", 0),_
   
PropertyValue("ConvertOOoTargetToPDFTarget", false),_
   
PropertyValue("ExportBookmarksToPDFDestination", false),_
PropertyValue("SignPDF",
false),_
   
PropertyValue("_OkButtonString", ""),_
PropertyValue("Watermark",
""),_
PropertyValue("EncryptFile",
false),_
   
PropertyValue("PreparedPasswords", Empty),_
   
PropertyValue("RestrictPermissions", false),_
   

[Libreoffice-bugs] [Bug 150600] MaxImageResolution is ignored in macro

2023-05-21 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=150600

--- Comment #2 from Mike Kaganski  ---
Why do you expect that you can pass an array of arrays as args to
executeDispatch? You need to prepare an array of *PropertyValue* struct, and
array(array(a,b,c,d)) is not the correct way to do it.

Hence, the array("MaxImageResolution", 0, 150, 0) will not be copied to a
PropertyValue structure in PDFFilter::implExport.

IMO, NOTABUG.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 150600] MaxImageResolution is ignored in macro

2023-05-21 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=150600

Roman Kuznetsov <79045_79...@mail.ru> changed:

   What|Removed |Added

 Blocks||107659


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=107659
[Bug 107659] [META] Macro bugs and enhancements
-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 150600] MaxImageResolution is ignored in macro

2023-05-21 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=150600

Mike Kaganski  changed:

   What|Removed |Added

Summary|MaxImageResolution is   |MaxImageResolution is
   |ignored in VBA script   |ignored in macro

-- 
You are receiving this mail because:
You are the assignee for the bug.