Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
pdf-customizer
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
76e79207
authored
2016-06-14 14:14:11 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
clean data on images
1 parent
1ba5f967
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
app/Http/Controllers/ApiController.php
app/Http/Controllers/PdfController.php
public/files/js/interfaceGdrive.js
app/Http/Controllers/ApiController.php
View file @
76e7920
...
...
@@ -118,11 +118,12 @@ class ApiController extends Controller
$folder
=
preg_replace
(
'/[^A-Za-z0-9\-]/'
,
''
,
$folder
);
$fileLocation
=
$change
->
fileLocation
;
$file
=
explode
(
'\\'
,
$change
->
content
);
$file
=
end
(
$file
);
$fileClean
=
str_replace
(
' '
,
'-'
,
$file
);
$curl
=
new
Curl
();
$curl
->
download
(
$fileLocation
.
'/'
.
end
(
$file
),
$storagePath
.
$folder
.
'/'
.
end
(
$file
)
);
$curl
->
download
(
$fileLocation
.
'/'
.
$fileClean
,
$storagePath
.
$folder
.
'/'
.
$fileClean
);
$curl
->
close
();
chmod
(
$storagePath
.
$folder
.
'/'
.
end
(
$file
)
,
0777
);
chmod
(
$storagePath
.
$folder
.
'/'
.
$fileClean
,
0777
);
}
}
...
...
app/Http/Controllers/PdfController.php
View file @
76e7920
...
...
@@ -135,7 +135,7 @@ try {
//Get image var from row
$imagefile
=
$row
->
folder
.
'/'
.
$row
->
content
;
$imagefile
=
$row
->
folder
.
'/'
.
str_replace
(
' '
,
'-'
,
$row
->
content
)
;
$imgLUp
=
$row
->
locationUp
;
$imgLRight
=
$row
->
locationRight
;
$bw
=
$row
->
width
;
...
...
public/files/js/interfaceGdrive.js
View file @
76e7920
// var pluginUrl = "http://localhost:8888/Forms";
// var pdf_customizer = "http://localhost:8888/pdf-customizer/public";
// var pdf_customizer = "http://localhost:8888/pdf-customizer/public";
var
pluginUrl
=
"http://contact.gotenzing.com"
;
var
pdf_customizer
=
"http://pdf-customizer.synapsus.co"
;
...
...
@@ -48,6 +48,8 @@
function
offFocus
(
id
)
{
...
...
Please
register
or
sign in
to post a comment