What is the best way to edit google docs using the API? - google-docs-api

I'd like to be able to edit any kind of Google docs using the API from Google App Engine.
My goal is to lose as little information as possible when editing the document. The edits are fairly simple like replacing some words.
Document
To edit them, I'm doing an export in HTML and importing it again. But we are loosing some information like notes. There is also an issue with the title, the size before each title increase at every new update, so I have to reset some css. Is there is a better way of editing docs ?
Spreadsheet
There is the spreadsheet API, so I think I'm covered.
Presentation
I did not find a format that I could export and import again. The only one seems to be powerpoint. But powerpoint files cannot be easily edited.
Drawing
I did not find a format that can be both exported and imported. I tried with SVG, but svg cannot be imported back.

Document
PDF offers you the best fidelity in and out of Google Docs, without the hassle of proprietary or complicated formats like MS Word files.
Spreadsheet
Only proprietary or complicated formats guarantee fidelity here of things like cell color. The Spreadsheets API only allows data to be updated, but not formatting.
Presentation
You are correct, PPTX is the only format that can go both in and out of Google Presentations.
Drawing
You are correct, there is no import format that can go both in and out of Google Drawings.

Related

Convert .xliff files to Excel or Google Sheets

My app is relatively simple, and I am localizing it to multiple new languages. The Xcode's editor for .xliff and .xclok files is really convenient because it presents all fields in a table.
However, since I am using Google Translate anyway (the app is simple enough that its decent), I envision the fastest way to localize the app into endless number of languages is to export the .xliff file into Google Sheets and use the built in translate function to translate the whole app in one click. Basically I want the same table format as the Xcode's .xclok editor, but in google sheets so I could process the text instantly.
Is that doable?

Connect Google Sheet into Photoshop

I am hardly finding a way to connect or live-import data from Google Sheet in Photoshop.
There are several way to edit or replace some text layers, or even upload the PSD file into online real time editors, or using Adobe API, but is not exactly what I am looking for or at least I am struggling with.
This is the scenario:
here my Photoshop Artboard
and here my Google Sheet
what I want to do is to connect each layer from artboards' Photoshop with a defined cell/position in Google Sheet in order to get a live update when sorting or updating those cells. The cells and columns could be more than 10.000 in what I want to do.
And perhaps.. the struggling things is that I want to keep this flow in the Adobe/Photoshop application.
Do you have anything that I need to check or have knowledge to clearify this situation?
Many thanks!
Yes, in principle...
Yes, it's possible to load in a .CSV into photoshop and modify layer data, such as text.
Doing it live? This post has more info.
"connect each layer from artboards' Photoshop with a defined
cell/position"
Have you created a Photoshop document with 10,000 layers? You haven't really explained what you will be doing with the Google Sheet, so I can't help you further.
Try a prototype with smaller data sizes first - see if you can get that to work.

Google Spreadsheet: Parsing .PDF from Google Drive

I'm still getting into google spreadsheets, recently understood how to format a .txt to be able to use =ImportData properly thanks to Tanaike's assitance, now tackling a -slightly- more challenging task.
Goal:
Automatically extracting specific data from .pdf files hosted inside of a google drive folder and arranging the information into specific cells
Challenges:
Being able to decode the blobs of information, as just the raw data obtained with =ImportData is useless
Truly learning how to use google-apps-script for something useful (that's on my own)
Instructing a single extraction of information rather than constant online status as with =ImportData
[Second Priority] Stop Depending on an add-on (Drive Direct Links) to get the URL of the files
To my understanding, I'll need to do some parsing. I know .pdf is not always straight forward, all the files will come from the same place and have the exact same format, so understanding how to do it once should be enough.
I already know how to get the real/permanent link to the files automatically and how to arrange information segregated into cells using =Index, =Extract and others.
Hope I'm being clear enough. Thanks a lot in advance.
Best regards,
Lucas.-

What's the best approach for modifying PDF interactive form fields on iOS?

I've been doing some head banging on this one and solicit your advice.
I am building an app that as part of it's features is to present PDF forms; meaning display them, allow fields to be changed and save the modified PDF file back out. UIWebViews do not support PDF interactive forms.
Using the CGPDF apis (and benefit from other questions posted here and elsewhere), I can certainly present the PDF (without the form fields/widgets), scan and find the fields in the document, figure out where on the screen to draw something and make them interactive.
What I can't seem to figure out is how to change the CGPDFDictionary objects and write them back out to a file. One could use the CGPDF Apis to create a new PDF document from whole cloth, but how do you use it to modify an existing file?
Should I be looking elsewhere such as 3rd party PDF libs like PoDoFo or libHaru?
I'd love to hear from anyone who has successfully modified a PDF and written it back out as to your approach.
I once did this incredibly cheaply by munging through the PDF -- I mean using regular expressions -- and just dirtily changing the actual raw text of the raw PDF data file.
It can work perfectly in simple situations where you are easily able to find the value in question.
No idea what you're trying to do here but a lateral thought! Hope it helps!

Copying Excel formulas with Delphi 7

My team leader wants me to check if this is possible.
Our app has a grid (we use TAdvStringGrid from tmssoftware) that displays some values. Our users then copy and paste to Excel. (2010) Now they want the values to update automatically when they play with Excel. In other words, I need to copy formulas similar to having a Excel sheet with values and formulas and pasting it on another sheet.
I'm thinking of exporting it as an Excel file (with some kind of excel component) with the formulas but team leader first want to see if the copying will work or not.
I never worked with Excel (using Delphi) before. :-(
Thanks
Sounds like you need the TAdvSpreadGrid from TMS instead. It's an enchanced version of TAdvStringGrid that has support for the formulas as well.
If you need even more Excel Support they have TMS FlexCel Studio that is very nice.
I use TAdvSpreadGrid from TMS also. For reading and writing really spiffy spreadsheets with support for formulas, nice formatting and even pane freezing to make data editing easier for my clients, I use Native Excel. It's fast, has good documentation, and is easy to use. It's worth a look.
While the previous answers aren't wrong, I found another solution.
I tried adding the calculation (e.g. =A1+B1) to the cell as plain text. When copying to Excel it accepts my formula as an Excel formula and calculates it just like I want it.
No need to splash out more money on TAdvSpreadGrid or something else. :-)

Resources