Edit Graphics layer Source Text in Adobe ExtendScript Premiere Pro - extendscript

I am using Adobe Premiere Pro 2023 and I am trying to edit a Graphics Layer's Source Text using ExtendScript. Everything I try to do it, it sets the Graphics Layer to a blank and removes all the text instead of setting the value
Here is what I am doing:
app.project.activeSequence.videoTracks[2].clips[0].components[3].properties[0].setValue('Hello', 1);
I would expect the item to be updated to be updated to "Hello"
Note, this Graphics item was generated using Captions and then using the "Upgrade to Caption to Graphics" function

Related

Fabric.js / Text Edit on mobile

I'm trying to use TUI Image Editor (https://github.com/nhn/tui.image-editor) in my Cordova app on Android.
It is based on Fabric.js and overall working reasonably, however I have major problems with the text annotation: If the edited text is in the lower part of the screen, the Android softkeyboard is covering the text input and doesn't scroll it into view. This also happens when I run the page in the normal Android Chrome browser.
Are there any recipes or examples how to get that working with Fabric.js?
I had the same problem, and I just avoided using the IText and Textbox objects. I just used the html input field and object with type Text in fabric.js without editing inside canvas, and editing inside input and changing text object to input value. Because if you will use the IText and Textbox objects, you will face problems with editing text on small texts, or text objects with a small scale, where editing inside canvas will be difficult and annoying.
If you still want to scroll to text object I can't give you a full solution. But I think you can use canvas events for text
canvas.on('text:editing:entered', (textObject) => {
// calculate canvas offset and textObject offset and scroll to this position
})

Multiple Language Support Not Working in TextMesh Pro

I am currently using TextMesh Pro. While Input other languages in input field, its shows white boxes. Its work fine while typing English alphabet and use other languages font in input field.
Here's the screen shot of the following error..enter image description here
Here typing "hello" in English working fine in "Chinese" but if a input Chinese alphabet, it shows white boxes.
I also tries to make font asset as unicode, but its still not working. I am currently using unity 5.6.2
I faced the same problem, this is the process I went by, to solve it for me:
1. I found this very helpful,
2. Digital Native Studios Font Asset Creator was where I made my mind how to do it
3. head to Google Fonts, I chose Cyrillic in language selection section and downloaded the zip file, and extracted all in this folder: "\Assets\TextMesh Pro\Fonts"
4. I got to Window menu from menu bar of unity, then to TextMeshPro there, and from the next cascading menu I clicked "Font Asset Creator"
5. There it was straightforward thanks to its Author, I simply chose my font, then from "Character set" I chose "Unicode Range (Hex)", also, before that I googled "unicode hex range Cyrillic", and I knew that it's "0400-04FF" range and finally clicked "Generate Font Atlas" there
6. After saving I got back to unity, in Canvas I selected my TextMeshPro Text component, from Font Asset I found and selected the SDF file that was generated (easy to find by name), and also from "Material Preset" bellow that I selected the related (same name) material. I typed text in Cyrillic and magically everything worked!
I hope this helps and will be happy to help further in what I can.
Edit
This youtube clip maybe helpful too
Step 01: Download Font
open the link https://fonts.google.com/ . Click right on corner Browse fonts click. and type the font in search box.
Font List
Noto Sans [find On Google fonts]
Roboto [find On Google fonts] 3)
Code2000 [But it's not open source.]
Futura
Arial
Download Family for your favorite font.
Step 02: Install TextMeshPro plugin
from Package manager. After copy the font file NotoSans-Regular.ttf and paste to this directory. [Ex. Asset > TextMesh Pro > Resources > Fonts & Materials > paste NotoSans-Regular.ttf file]
Step 03: Create SDF for font. if any one
Select NotoSans-Regular.ttf file and create font asset SDF from menu bar Assets > Create > TextMeshPro > Font Asset OR
Short Cut-> Shift + Ctrl + F12 OR
Select NotoSans-Regular.ttf file and click mouse right button and create SDF from Create > TextMeshPro > Font Asset
Step 04: Add Other font SDF in to your primary or existing font SDF.
Select primary font SDF and show the inspector go to Fallback Font Assets. Added the NotoSans-Regular SDF in to Fallback list. [Multiple fonts added in to primary font SDF]

Embedding SVG in Office 365 page

Office 365 newbie. Just want to build a web page. Create a web page. Fine. Try to embed some SVG (from InkScape). Displays resulting image fine (yay!) but when I save, image disappears and says I should have used "embed command". Ok, try embed dialog. Displays resulting image fine (yay!) which then disappears when I save. I would just assume no SVG support, but it seems to be able to draw images from SVG just fine, but tosses the SVG code whenever I save. Hoping there's a checkbox somewhere that says "stop throwing away embedded SVG".
When I used Word 2010 and Inkscape, I found it useful to export the image from Inkscape as an Enhanced Metafile (EMF). I did so because the images then remained vectorized in PDFs. Not using Windows anymore, I can't speak for Word 2013, but I'd suggest you try it.
Office 365 started to support SVG format recently. Saving an Office file with SVGs in it shouldn't cause any problems anymore.
Btw: If someone needs to export a document to PDF, it is still recommended to use EMF as vector graphic format, since PDF doesn't support SVG natively.

Embed a font into PDF form

I have a PDF form generated by LibreOffice. Since to a known bug in LibreOffice only a font subset is embedded into PDF even when the font is used in form fields. Therefore the form is not usable or form fields are using a wrong front (depending on PDF viewer) if the font is not installed on computer.
So I have to replace form subset in PDF form by whole font after generation in LibreOffice. Normally using ps2pdf or gs is recommended to fix a font issue in a pdf. But both programs don't support PDF form. If using them on a PDF form the form fields are broken. I tested it with Ghostscript 9.10 under Unbunt 14.04 LTS.
I can use pdffonts to show fonts embedded in PDF. But is there also a command-line tool to embed another font into a PDF?
Libreoffice v5.2 embedding fonts for forms fields is easy:
Enable the font in the form field:
() Right-click form field > Control > Font
Then tell your document to include the used fonts into its file:
() File > Properties > Font tab > Embed fonts into document
In my case filesize increases from 50k to 5000k (using one font
with two styles).
At last check PDF options to include fonts into pdf:
() File > Export to Pdf > General tab:
x Enable Create PDF form (to make the form fields fill-in ready to the user).
Not shure whether both of the following options are needed:
x Tagged PDF and
x Hybrid PDF: The later will enlarge pdf to the size of the LibreOffice file.
Until the bug gets resolved, you can use PDF Toolbelt to fix your forms.
After downloading the JAR file, the font of all fields can be reset to the default values of Adobe Acrobat:
java -jar ./pdf-toolbelt.jar form-font-defaults input.pdf output.pdf
Disclaimer: I'm the author of the above-mentioned tool.
This is just a workaround: place a text edit field on the page that is invisible and locked which contains a default string of your likely character set. While you will still get a subset font, it would be a substantially larger subset.
There are a number of commercial solutions that can fully embed a font in a PDF, if a commercial application is a viable option in your case (they will be expensive to "just" do this probably). The two major contenders are probably callas pdfToolbox (caution: I'm associated with this product) and Enfocus Pitstop.

Linux PDF reader which handle speaker notes

I've tried several versions (adobe, evince and foxit) but no one seems to handle speaker notes in pdf presentations.
Edit: for example Google drive presentations or microsoft office powerpoint allow to insert speaker notes that are displayed in separated window and which can, for example, be dragged to the laptop screen while the main presentation is displayed in the datashow screen, both are bounded to each other, when one passes to a new slide in the big screen, its corresponding notes are displayed on the laptop screen.

Resources