Select to view content in your preferred language

PrintTemplate.layoutOptions , customTextElements not working!

247
0
11-21-2024 02:08 AM
cadgism
Regular Contributor

Hi

I get the pdf file,  everything seems ok but the custom text elements. Nothing is changed .  Javascript 4.21 & AecGIS Pro 3.3

 

 

 var template = new PrintTemplate({
                                layout: "newafour",
                                format: "pdf",
                                scalePreserved :true,
                                outScale: printScale,
                                layoutOptions: {
                                    customTextElements: [
                                        {xText:"MyText"}
                                        /* { pinNumber: "63090034"},
                                        { Area: pinArea },
                                        { userName: pRintUserName },
                                        { printDate: Date() },
                                        { PrintedBy: " :      " + "طبع بواسطة" }*/
                                    ]
                                }
                            });

 

 

0 Kudos
0 Replies