Jump to content

Vegas Fred

Newbies
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Vegas Fred

  • Rank
    newbie
  1. I found a solution. Apparently a PDF in my import set had page labels that were causing issues with the merge. So I had to filter what things get imported with the PDF via the MBS( "DynaPDF.SetImportFlags"; PDF; Flags ). The filter that I am currently using is : ImportAsPage So now right after I set up the new PDF in memory space I set the filter : #New PDF Set Variable [ $pdf ; Value: MBS("DynaPDF.New") ] #Set PDF Filter Set Variable [ $r ; Value: MBS("DynaPDF.SetImportFlags"; $pdf; "ImportAsPage") ] #Set File Destination Set Variable [ $r ; Value: MBS("DynaPDF.OpenOutputFile"; $pdf; $destPath) ] So far this is working with the PDF that were giving me issues. Hopefully this will help others out. -=fred=-
  2. Thank you for your response! I apologize that I did not explain myself well. After merging the PDF the displayed page number in the Adobe software is not correct. For example, at the top where it list what page you are on: It shows that I am on page number 2, but it is 31 of 441. Also on the thumbnail view: ( I did cover up the actual contents of the pages ) Hopefully that makes more sense. -=fred=-
  3. I am trying to join multiple PDFs in to one PDF. The issue I am having is that the page numbers are not displaying correctly. It will list the page number as 1, 2, 2, 2, 2 etc instead of 1, 2 ,3 ,4, 5. My code looks like: #Setting the desitination Set Variable [ $dFilename ; Value: "/" & builderdoc.builder.file::file_number_n &" " & builderdoc.Builder::name_t & ".pdf" ] Set Variable [ $destPath ; Value: MBS("Folders.SystemTemporary") & $dFilename ] #New PDF Set Variable [ $pdf ; Value: MBS("DynaPDF.New") ] Set Variable [ $r ; Value: MBS("DynaPDF.OpenOutputFile"; $pdf; $destPath) ] #Loop though records and merge pdfs Set Variable [$Page ; Value: 1] Loop Set Variable [ $r ; Value: MBS("DynaPDF.OpenPDFFromContainer"; $pdf; builderdoc.Doc::document_r) ] Set Variable [ $r ; Value: MBS("DynaPDF.ImportPDFFile"; $pdf; $Page) ] If [ GetAsNumber ( $r ) > 0 ] Set Variable [ $Page ; Value: $r+1 ] End If Set Variable [ $r ; Value: MBS("DynaPDF.FlushPages"; $pdf; $Page) ] Go to Record/Request/Page [ Next ; Exit after last: On ] End Loop #Close the PDF Set Variable [ $Merge ; Value: MBS("DynaPDF.Save"; $pdf; "Merged.pdf") ] Set Variable [ $r ; Value: MBS("DynaPDF.Release"; $pdf) ] Let me know if more details will help. Thank you for taking a look! -=fred=-
  4. I also tried the RunShellScript and got the same results. I then tried using a batch script before the script ran and again it did not work. So for now I have the batch script dumping the file list to a text file that I am importing in to my solution and getting the names from that. Thank you for looking in to this! 360Plug-ins_Server.log 360Works_ScriptMaster_Server.log
  5. I am working on solving an issue that requires me to list all of the files in a share. I am hoping to use a command like : ListAllFilesInDirectory( $Path ) But I am running in to issues. My FileMaker server is running on a windows server and I can not for the life of me get it to list the files from the share. I have tired \\Computer name\Share Name, filewin:\\Computer name\share name, I have tried mapping the share to a drive letter, and even creating a symbolic link to the share. The drive letter and link both work from file explorer or terminal, but I can not get it to work with the "ListAllFilesInDirectory( $Path )". Any help would be greatly appreciated. Thank you! -=fred=-
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.