Applications, Games, Tools, User libs and useful stuff coded in PureBasic
Thorsten1867
Addict
Posts: 1366 Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany
Post
by Thorsten1867 » Mon May 04, 2020 6:13 pm
PB_Rainer wrote: PDF:ImageMemory
Beachte, dass 32Bit und Interlaced bei PNG nicht unterstützt werden.
Ich habe bisher keinerlei Informationen finden können, ob und wie BMP in PDF eingebunden werden kann.
PB_Rainer
User
Posts: 80 Joined: Fri Jun 07, 2019 1:56 pm
Post
by PB_Rainer » Tue May 05, 2020 9:43 am
Thorsten1867 wrote: PB_Rainer wrote: PDF:ImageMemory
Beachte, dass 32Bit und Interlaced bei PNG nicht unterstützt werden.
Ich habe bisher keinerlei Informationen finden können, ob und wie BMP in PDF eingebunden werden kann.
Danke, ich habe jetzt einfach einen kleinen workaround gemacht.
Ich lade die BMP und sichere sie sofort als PNG 8BIT in ein Tempfile, welches sofort nach einbinden in die PDF gelöscht wird. Geht so schnell, daß man es gar nicht merkt. Also alles gut.
Rainer
Thorsten1867
Addict
Posts: 1366 Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany
Post
by Thorsten1867 » Tue May 05, 2020 12:05 pm
Habe mich auch mal an einem Workaround (ungetestet) versucht.
PB_Rainer
User
Posts: 80 Joined: Fri Jun 07, 2019 1:56 pm
Post
by PB_Rainer » Tue May 05, 2020 1:48 pm
Thorsten1867 wrote: Habe mich auch mal an einem Workaround (ungetestet) versucht.
Danke Thorsten, BMP läuft einwandfrei!
Fehlt ja nur noch ImageMemory
Thorsten1867
Addict
Posts: 1366 Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany
Post
by Thorsten1867 » Tue May 05, 2020 2:07 pm
PB_Rainer wrote: Fehlt ja nur noch ImageMemory
Should actually work, too.
1.) Catch image
2.) Check whether it is PNG or BMP
3.) Encode image
PB_Rainer
User
Posts: 80 Joined: Fri Jun 07, 2019 1:56 pm
Post
by PB_Rainer » Tue May 05, 2020 5:48 pm
Thorsten1867 wrote: PB_Rainer wrote: Fehlt ja nur noch ImageMemory
Should actually work, too.
1.) Catch image
2.) Check whether it is PNG or BMP
3.) Encode image
Wow!
Will try tomorrow, that would be really great!
you're great!
Thanks
Rainer
PB_Rainer
User
Posts: 80 Joined: Fri Jun 07, 2019 1:56 pm
Post
by PB_Rainer » Wed May 06, 2020 9:11 am
Thorsten1867 wrote: PB_Rainer wrote: Fehlt ja nur noch ImageMemory
Should actually work, too.
1.) Catch image
2.) Check whether it is PNG or BMP
3.) Encode image
Hi Thorsten,
Tested it with PNG, works perfect.
Thanks
Rainer
P.s. for what does it need a filename? Filename with path?
Thorsten1867
Addict
Posts: 1366 Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany
Post
by Thorsten1867 » Wed May 06, 2020 11:51 am
PDF needs an internal filename without path
Gesendet von meinem Aquaris X2 mit Tapatalk
langinagel
Enthusiast
Posts: 131 Joined: Fri Jan 28, 2005 11:53 pm
Location: Germany
Contact:
Post
by langinagel » Sun May 10, 2020 5:55 pm
Hi Thorsten,
as I was struggling with InsertTOC() I suggest an improvement in this procedure:
Code: Select all
If PDF()\TOC()\Page >= Page
Page$ = Str(PDF()\TOC()\Page +1)
Else
Page$ = Str(PDF()\TOC()\Page )
EndIf
Greetings
LN
Skawer
New User
Posts: 3 Joined: Mon Apr 27, 2020 12:57 pm
Location: Russia
Post
by Skawer » Thu May 28, 2020 12:18 pm
Hi Thorsten. Need help. Unicode U+0428 output a blank page.
PDF::SetFont(#PDF, "LucidaSans", "", 16)
PDF::Cell(#PDF, "Ш", #PB_Default, #PB_Default, #False, PDF::#NextLine)
Thorsten1867
Addict
Posts: 1366 Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany
Post
by Thorsten1867 » Wed Jun 03, 2020 10:37 am
Only UTF-Characters 0 - 65535 are supported.
Skawer
New User
Posts: 3 Joined: Mon Apr 27, 2020 12:57 pm
Location: Russia
Post
by Skawer » Wed Jun 17, 2020 2:14 pm
Thorsten1867 wrote: Only UTF-Characters 0 - 65535 are supported.
0428 like included in 65535?:)
IdeasVacuum
Always Here
Posts: 6425 Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:
Post
by IdeasVacuum » Wed Jun 17, 2020 5:43 pm
...Make sure the font supports '0428'
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Skawer
New User
Posts: 3 Joined: Mon Apr 27, 2020 12:57 pm
Location: Russia
Post
by Skawer » Sat Jun 20, 2020 2:25 pm
IdeasVacuum wrote: ...Make sure the font supports '0428'
I usage a standart font Windows 7 'font l_10646.ttf' - Lucida Sans Unicode
loulou2522
Enthusiast
Posts: 503 Joined: Tue Oct 14, 2014 12:09 pm
Post
by loulou2522 » Mon Oct 19, 2020 7:00 am
I don't know how to do the following:
I'm on page 2 of my PDF and would like to go back to Page One to add text at a defined position and then go back to Page Two and continue processing. Is this possible?