We have reset all users FileMaker related profile fields. Please take the opportunity to update your information,  this will provide background to members whom read your posts. Click here.

Jump to content

Olivier Chenot

Members
  • Content count

    9
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Olivier Chenot

  • Rank
    newbie
  • Birthday 03/31/1970

Profile Information

  • Title
    Manager
  • Industry
    Software
  • Gender
    Male
  • Location
    France, Toulouse
  1. pdf merge ok with 4.32 release but ko with 4.42

    Hi Problem solved when adding bouncy castle jar libs. http://www.mdpqualite.fr/telechargement/ScriptMaster PDF_Concat_Corrige.zip
  2. Hi, I face something very weird. When I use a groovy pdf merge function, it works perfectly well with scriptMaster 4.32 release but fails with 4.42 one. Returned error is "ERROR: the document has no pages". The script : you can find it on french forum : https://www.fmsource.com/topic/45116-scriptmaster-manipulation-de-documents-pdf/#comment-262760 // iText_ConcatenatePDF ( fm_fileList ; fm_outputPath ; fm_setCompression ) // 20150130 Clem // v1.0 // Concatène une liste de documents pdf. // // ***** PARAMETERS ***** // fm_fileList : Une liste de chemins menant à des documents PDF. // fm_outputPath : Le chemin de sortie du document final. // fm_setCompression : Active la compression du flux de données. Valeurs acceptées : // Pour activer la compression : 1, TRUE, true, True, "1", "true", "TRUE". // Pour désactiver la compression : toute autre valeur y compris "". // Remarque: Activer la compression génèrera automatiquement un PDF de version 1.5 // // ***** DEPENDENCIES ***** // iText.jar // http://sourceforge.net/projects/itext/files/iText//// ******************************************************************************************************************** import com.itextpdf.text.Document import com.itextpdf.text.pdf.PdfReader import com.itextpdf.text.pdf.PdfSmartCopy import com.itextpdf.text.pdf.PdfWriter try { def fileArray = fm_fileList.tokenize("\n") if (fileArray.empty) throw new Exception("Empty file list.") // check for pdf document fileArray.each { f = new File(it) if ( ! (f.exists() && f.getName().toLowerCase().endsWith(".pdf"))) throw new IOException ("File \"${f}\" not found as file or resource or is not a PDF document.") } // compression try { setCompression = fm_setCompression.toBoolean() } catch (Exception e) { setCompression = false } // merge pdf documents try { // Document implements DocListener, IAccessibleElement new Document().with { doc -> // PdfSmartCopy extends PdfCopy extends PdfWriter extends DocWriter implements PdfViewerPreferences, PdfEncryptionSettings, PdfVersion, PdfDocumentActions, PdfPageActions, PdfRunDirection, PdfAnnotations copy = new PdfSmartCopy(doc, new FileOutputStream(fm_outputPath)) if ( setCompression) { // PdfWriter extends DocWriter implements PdfViewerPreferences, PdfEncryptionSettings, PdfVersion, PdfDocumentActions, PdfPageActions, PdfRunDirection, PdfAnnotations copy.pdfVersion = PdfWriter.VERSION_1_7 copy.setFullCompression() // throws DocumentException } open() // Document fileArray.each { f -> new PdfReader(f).with { for (page in 1..getNumberOfPages()) { copy.addPage(copy.getImportedPage(it, page)) } copy.freeReader(it) // throws IOException close() // PdfReader close } } //copy.close() // PdfCopy close close() // Document close } return 1 } catch (Exception e){ return("ERROR: $e.message") } finally{ copy.close() } } catch (Exception e) { return ("ERROR: $e.message") }
  3. FileMaker 14 crashes Windows 10 with 4.42

    Hi I have another PC with same crash. Deleting files in C:/users/<user>/360Works/ directory didn't help. Olivier
  4. FileMaker 14 crashes Windows 10 with 4.42

    Hi I have deleted all files in C:/users/<user>/360Works/ directory (160 files), it works fine, crash is gone. Olivier
  5. FileMaker 14 crashes Windows 10 with 4.42

    Hi, Where did you find this 4.32 release ? I have same crash ... Thanks in advance, Olivier
  6. Scriptmaster 4.42- Convert Pdf into text

    Hi, It works fin adding both bcprov-jdk15on-152.jar and bcpkix-jdk15on-152.jar Shall I close the topic ? Thanks and regards Olivier
  7. Hi everybody I have an error using scriptmaster 4.42 release when I try to convert a pdf file into text. I have no problem with 4.201 release. The function reurns ERROR and SMLastError is set as "java.lang.NoClassDefFoundError: org/bouncycastle/cms/Recipient" My function is defined as "import java.io.IOException" & ¶ & "import com.itextpdf.text.pdf.PdfReader" & ¶ & "import com.itextpdf.text.pdf.parser.PdfTextExtractor" & ¶ & ¶ & "if( fm_filePath == null ){ throw new Exception(\"File path required !\")}" & ¶ & "if (new File( fm_filePath ).exists()){" & ¶ & " try{" & ¶ & " reader = new PdfReader(fm_filePath)" & ¶ & " sb = new StringBuffer()" & ¶ & " for (int i = 1; i <= reader.numberOfPages; i++) {" & ¶ & " sb.append(PdfTextExtractor.getTextFromPage(reader, i))" & ¶ & " }" & ¶ & " return sb " & ¶ & " } catch (IOException e) {" & ¶ & " e.printStackTrace()" & ¶ & " return \"IO ERROR.\"" & ¶ & " } catch (Exception e) {" & ¶ & " e.printStackTrace()" & ¶ & " return \"ERROR.\"" & ¶ & " }" & ¶ & "}" Starting from SMLastError I added bouncycastle jar in my filemaker solution. No change, so I tried to add as well such as import steps : "import java.io.*" & ¶ & "import java.util.*" & ¶ & "import java.security.*" & ¶ & "import org.bouncycastle.jce.provider.BouncyCastleProvider" & ¶ & I found these steps on other forums, but without any documentation, it looks like fishing... One thing changes : when I use "import org.bouncycastle.jce.provider.BouncyCastleProvider" SMLastError becomes java.lang.NoClassDefFoundError: org/bouncycastle/cms/RecipientId instead of java.lang.NoClassDefFoundError: org/bouncycastle/cms/Recipient Thanks in advance Olivier
  8. Wrong format for zip

    Hi, I use scriptmaster to zip a directory, with this source code : http://fmforums.com/...ip-a-directory/ It works fine and I can unzip my archive with 7-zip for instance. Trouble comes when I use Windows browser : When I right click on file then Unzip (Extraire tout in french), I am getting a wrong file format error. When I right click on file then Open, Windows browser shows me an empty content. Anybody's getting same error ? Thanks
  9. Hi everybody, I use FileMaker 11 with scriptmaster. I am looking for right syntax to send a insert event POST request I write my request as follows, with OAuth2 protocol, including access_token : POST https : // www.googleapis.com/calendar/v3/calendars/myCalendar/events?access_token=myAcessToken body='{ "summary": "Test", "start": {"timeZone": "Europe/Paris","dateTime": "2012-08-09T09:00:00"}, "end": {"timeZone": "Europe/Paris","dateTime": "2012-08-09T10:00:00"} }' I have an error 400, which comes from : - my key (body), which is supposed to be a 'events resource' but I cannot find its explicit value here (it is empty) : https://developers.g...e/events/insert or - my value '{ "summary" ...}', which I wrote from this issue : http://code.google.c...es/detail?id=86 , where I found the 'body' key value and my syntax with double and simple quotes. I suppose I am really close to success as this request perfectly works and adds an event in my calendar : POST https : // www.googleapis.com/calendar/v3/calendars/myCalendar/events/quickAdd?access_token=myAcessToken text=myEvent I tried as well this : POST https : // www.googleapis.com/calendar/v3/calendars/myCalendar/events?access_token=myAcessToken '{ "summary": "Test", "start": {"timeZone": "Europe/Paris","dateTime": "2012-08-09T09:00:00"}, "end": {"timeZone": "Europe/Paris","dateTime": "2012-08-09T10:00:00"} }' with same error 400 Thanks
×

Important Information

By using this site, you agree to our Guidelines.